Function at 0x4f7870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5da1d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
mov al, byte [esp + 0xf]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x78], ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x1d4], ebp
call fcn.00558060
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1d4], 1
call fcn.00558060
mov cl, byte [esp + 0x1f]
sub esp, 0x10
mov edx, esp
mov edi, 0x619c18
xor eax, eax
mov dword [esp + 0x40], esp
mov byte [edx], cl
or ecx, 0xffffffff
mov dword [edx + 4], ebp
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov byte [esp + 0x1e4], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x619c18
mov ecx, edx
call fcn.004017b0
push ebp
lea ecx, [esp + 0x5c]
call fcn.00542e70
push 0xff
lea edx, [esp + 0xd0]
mov ebx, 3
push 0x609488
push edx
mov byte [esp + 0x1e0], bl
call fcn.005bcf3d
mov al, byte [esp + 0x2b]
push ecx
mov edx, esp
lea edi, [esp + 0xdc]
or ecx, 0xffffffff
mov dword [esp + 0x40], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebp
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe0]
push ecx
mov ecx, edx
call fcn.004017b0
sub esp, 0x10
lea edx, [esp + 0x3f]
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push 0x60af04
mov byte [esp + 0x1fc], 4
call fcn.00404ee0
mov byte [esp + 0x1f4], 5
sub esp, 0x10
lea eax, [esp + 0x8f]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
push 0x60cf40
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0x7b]
mov ecx, esp
mov dword [esp + 0xac], esp
push edx
push 0x619c18
mov byte [esp + 0x21c], 6
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x224], 7
mov esi, esp
mov dword [esp + 0x94], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x234], 8
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea eax, [esp + 0xf4]
mov ecx, 0x619a58
mov byte [esp + 0x234], bl
push eax
call fcn.00543d00
mov edx, dword [0x5e5150]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x4c], cx
push ebp
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 9
call fcn.004120f0
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x1d4], bl
cmp eax, ebp
je 0x4f7a9a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7a91
cmp al, 0xff
je 0x4f7a91
dec al
mov byte [ecx], al
jmp 0x4f7a9a
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x48]
call fcn.00551f50
cmp ax, 2
jne 0x4f7b35
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x4f7ad2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7ac9
cmp al, 0xff
je 0x4f7ac9
dec al
mov byte [ecx], al
jmp 0x4f7ad2
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov edi, eax
je 0x4f9184
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f7b1d
mov esi, dword [esp + 0x24]
push esi
jmp 0x4f93a5
lea eax, [esp + 0x84]
lea ecx, [esp + 0x48]
push eax
call fcn.00542fb0
mov eax, dword [eax + 4]
cmp eax, ebp
jne 0x4f7b52
mov eax, 0x5e514c
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xcc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x88]
and ecx, ebx
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
je 0x4f7b9f
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7b96
cmp al, 0xff
je 0x4f7b96
dec al
mov byte [ecx], al
jmp 0x4f7b9f
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x40], al
or eax, 0xffffffff
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x28], esp
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x60e0f8
call fcn.00558100
push esi
call fcn.00560f40
mov ecx, dword [0x619a64]
add esp, 8
call fcn.005482f0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60dfc0
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov al, byte [esp + 0x40]
push ebp
push ecx
test al, al
mov ecx, esp
jne 0x4f7c26
mov dword [esp + 0x20], esp
push 6
push 0x60e0f0
jmp 0x4f7c31
mov dword [esp + 0x20], esp
push 6
push 0x60e0e8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov edi, dword [esp + 0x40]
lea eax, [esp + 0xcc]
mov edx, edi
and edx, 0xff
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x4f]
mov ecx, esp
mov dword [esp + 0x58], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0xa
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0xb
mov ecx, esp
mov dword [esp + 0x84], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov esi, eax
call fcn.00401520
add esp, 4
cmp si, 2
je 0x4f8e1b
movsx eax, si
sub eax, ebp
je 0x4f7dc8
dec eax
jne 0x4f7bbe
mov al, byte [esp + 0x40]
test al, al
jne 0x4f7fed
movsx cx, byte [0x60dbf0]
push ecx
push 0x60dbf1
lea ecx, [esp + 0x3c]
call fcn.00558600
lea edx, [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00558070
call fcn.00503c80
add esp, 8
cmp ax, bp
push ebp
push 1
push ecx
mov ecx, esp
jg 0x4f7da7
mov dword [esp + 0x24], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x12
mov ecx, esp
mov dword [esp + 0x54], esp
push 6
push 0x60e0e0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
jmp 0x4f7bbe
mov dword [esp + 0x24], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x13
mov ecx, esp
mov dword [esp + 0x54], esp
jmp 0x4f7d85
push 0xff
lea ecx, [esp + 0xd0]
push 0x609488
push ecx
call fcn.005bcf3d
mov al, byte [esp + 0x47]
push ecx
mov edx, esp
lea edi, [esp + 0xdc]
or ecx, 0xffffffff
mov dword [esp + 0x28], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebp
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe0]
push ecx
mov ecx, edx
call fcn.004017b0
sub esp, 0x10
lea edx, [esp + 0x7f]
mov ecx, esp
mov dword [esp + 0x64], esp
push edx
push 0x60af04
mov byte [esp + 0x1fc], 0xc
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x4f]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
push 0x60cf40
mov byte [esp + 0x20c], 0xd
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0xc2]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
push 0x619c18
mov byte [esp + 0x21c], 0xe
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x224], 0xf
mov esi, esp
mov dword [esp + 0xb4], esp
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x234], 0x10
mov esi, esp
mov dword [esp + 0x70], esp
push ecx
mov ecx, esp
mov dword [esp + 0x74], esp
push 6
push 0x60df70
call fcn.00558100
push esi
call fcn.00560f40
add esp, 8
lea eax, [esp + 0x118]
mov byte [esp + 0x234], bl
push eax
mov ecx, 0x619a58
call fcn.00543d00
mov edx, dword [0x5e5150]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x4c], cx
push ebp
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 0x11
call fcn.004120f0
mov eax, dword [esp + 0xc0]
mov byte [esp + 0x1d4], bl
cmp eax, ebp
je 0x4f7f42
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x4f7f39
cmp cl, 0xff
je 0x4f7f39
dec cl
mov byte [eax], cl
jmp 0x4f7f42
push eax
call fcn.005bc500
add esp, 4
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0xc4], ebp
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xcc], ebp
call fcn.00542fb0
mov edi, dword [eax + 4]
cmp edi, ebp
jne 0x4f7f74
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xcc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xac]
and ecx, ebx
cmp eax, ebp
rep movsb byte es:[edi], byte [esi]
je 0x4f7fbf
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f7fb6
cmp al, 0xff
je 0x4f7fb6
dec al
mov byte [ecx], al
jmp 0x4f7fbf
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xcc]
mov dword [esp + 0xac], ebp
push ecx
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ebp
call fcn.005bd3b2
add esp, 4
mov byte [esp + 0x40], al
jmp 0x4f7bbe
mov eax, edi
and eax, 0xff
mov dword [esp + 0x64], eax
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60e0f8
call fcn.00558100
push esi
call fcn.00560f40
mov ecx, dword [0x619a64]
add esp, 8
call fcn.005482f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60e0d8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xcc]
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x89]
mov ecx, esp
mov dword [esp + 0x2c], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0x14
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x15
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
mov ebp, eax
mov edi, ecx
mov esi, eax
je 0x4f8109
push 0
mov ecx, esi
call fcn.004e70e0
add esi, 0x1c
cmp esi, edi
jne 0x4f80f9
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push 1
mov dword [esp + 0x38], ebp
call fcn.004f75b0
test ax, ax
je 0x4f85ac
jl 0x4f8ea3
movsx ecx, word [esp + 0x60]
push ecx
lea edx, [esp + 0xd0]
push 0x609488
push edx
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea eax, [esp + 0x72]
mov ecx, esp
mov dword [esp + 0x2c], esp
lea edx, [esp + 0xe0]
push eax
push edx
mov byte [esp + 0x1f0], 0x18
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x19
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x60e0d0
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4f82bc
mov ecx, dword [esp + 0x28]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp esi, edx
jae 0x4f82bc
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x24]
jne 0x4f824d
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x1a
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00411fd0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ec], 0x1b
call fcn.004e6470
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call fcn.00558070
jmp 0x4f82a1
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x1c
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00411fd0
push ecx
mov byte [esp + 0x1ec], 0x1d
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
inc esi
add ebp, 0x1c
jmp 0x4f81b7
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov esi, eax
call fcn.00401520
add esp, 4
cmp si, 1
je 0x4f8f75
test si, si
jne 0x4f7ff8
push 0xffff
lea ecx, [esp + 0xd0]
push 0x609488
push ecx
call fcn.005bcf3d
mov dl, byte [esp + 0x6a]
push ecx
mov ebp, esp
xor esi, esi
lea edi, [esp + 0xdc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp], dl
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov dword [esp + 0x20], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x44], ecx
push ecx
mov ecx, ebp
call fcn.004018c0
test al, al
je 0x4f8360
mov eax, dword [esp + 0x40]
mov edi, dword [ebp + 4]
mov ecx, eax
lea esi, [esp + 0xdc]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.004018a0
xor esi, esi
sub esp, 0x10
lea eax, [esp + 0xa0]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push 0x60af04
mov byte [esp + 0x1fc], 0x1e
call fcn.00404ee0
sub esp, 0x10
lea edx, [esp + 0xa2]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
push 0x60cf40
mov byte [esp + 0x20c], 0x1f
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0xb4]
mov ecx, esp
mov dword [esp + 0xac], esp
push eax
push 0x619c18
mov byte [esp + 0x21c], 0x20
call fcn.00404ee0
sub esp, 0x10
mov byte [esp + 0x224], 0x21
mov edi, esp
mov dword [esp + 0x80], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x60e0d8
call fcn.00558100
push edi
call fcn.00560f40
sub esp, 8
mov byte [esp + 0x234], 0x22
mov edi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x60e0d8
call fcn.00558100
push edi
call fcn.00560f40
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x234], bl
push ecx
mov ecx, 0x619a58
call fcn.00543d00
mov ecx, dword [0x5e5150]
mov dx, word [eax]
push ecx
add eax, 4
push esi
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x1e0], 0x23
mov word [esp + 0x54], dx
call fcn.004120f0
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x1d4], bl
cmp eax, esi
je 0x4f8493
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f848a
cmp al, 0xff
je 0x4f848a
dec al
mov byte [ecx], al
jmp 0x4f8493
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x48]
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
call fcn.00551f50
cmp ax, 2
je 0x4f7ff8
lea edx, [esp + 0x84]
lea ecx, [esp + 0x48]
push edx
call fcn.00542fb0
mov edi, dword [eax + 4]
test edi, edi
jne 0x4f84d8
mov edi, 0x5e514c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xcc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x88]
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
xor esi, esi
cmp eax, esi
je 0x4f8525
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f851c
cmp al, 0xff
je 0x4f851c
dec al
mov byte [ecx], al
jmp 0x4f8525
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0xcc]
mov dword [esp + 0x88], esi
push ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call fcn.005bd3b2
add esp, 4
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, edi
mov ebp, esi
je 0x4f856a
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f855c
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x20]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x84]
push 1
mov dword [esp + 0x38], ebp
call fcn.004f75b0
test ax, ax
je 0x4f8901
jl 0x4f8fff
cmp ax, 0xff
jne 0x4f85de
push 0xa
call fcn.00401520
add esp, 4
jmp 0x4f854e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x16
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60df68
jmp 0x4f8dfe
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x60e0f8
call fcn.00558100
push esi
call fcn.00560f40
mov ecx, dword [0x619a64]
add esp, 8
call fcn.005482f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60e0c8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xcc]
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x8a]
mov ecx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0x26
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x27
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
movsx ecx, word [esp + 0x60]
push ecx
lea edx, [esp + 0xd0]
push 0x609488
push edx
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
mov byte [esp + 0x1e8], 0x28
mov ecx, esp
lea eax, [esp + 0x8b]
mov dword [esp + 0x24], esp
lea edx, [esp + 0xe0]
push eax
push edx
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x29
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e0d0
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
movsx eax, word [esp + 0x68]
push eax
lea ecx, [esp + 0xd0]
push 0x609488
push ecx
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x95]
mov ecx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0x2a
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x2b
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e0c0
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4f88d6
mov ecx, dword [esp + 0x28]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x4f88d6
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x24]
jne 0x4f8867
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x2c
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00411fd0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ec], 0x2d
call fcn.004e6470
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00558070
jmp 0x4f88bb
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x2e
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00411fd0
push ecx
mov byte [esp + 0x1ec], 0x2f
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
inc esi
add ebp, 0x1c
jmp 0x4f87d1
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov esi, eax
call fcn.00401520
add esp, 4
cmp si, 1
je 0x4f90d1
test si, si
je 0x4f8933
jmp 0x4f854e
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x24
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60df68
jmp 0x4f8dfe
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x60e0f8
call fcn.00558100
push esi
call fcn.00560f40
mov ecx, dword [0x619a64]
add esp, 8
call fcn.005482f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60e0b8
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 6
push 0x60df90
call fcn.00558100
mov ecx, dword [0x619a64]
call fcn.005484f0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xcc]
push edx
push 0x609488
push eax
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x97]
mov ecx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0x32
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x33
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60df58
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp esi, eax
mov ebp, esi
mov edi, eax
mov dword [esp + 0x30], esi
je 0x4f8a72
push 1
lea ecx, [esi + 0xc]
mov byte [esp + 0x1d8], 0x35
call fcn.00401850
lea ecx, [esi + 8]
mov byte [esp + 0x1d4], 0x34
call fcn.005581a0
lea ecx, [esi + 4]
mov byte [esp + 0x1d4], bl
call fcn.005581a0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x30], esi
jne 0x4f8a36
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push 2
mov dword [esp + 0x38], ebp
call fcn.004f75b0
test ax, ax
je 0x4f8d1f
jl 0x4f918a
movsx ecx, word [esp + 0x60]
push ecx
lea edx, [esp + 0xd0]
push 0x609488
push edx
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea eax, [esp + 0x93]
mov ecx, esp
mov dword [esp + 0x24], esp
lea edx, [esp + 0xe0]
push eax
push edx
mov byte [esp + 0x1f0], 0x3a
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x3b
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e0d0
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
movsx eax, word [esp + 0x68]
push eax
lea ecx, [esp + 0xd0]
push 0x609488
push ecx
call fcn.005bcf3d
add esp, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x60dc58
call fcn.00558100
sub esp, 0x10
lea edx, [esp + 0x87]
mov ecx, esp
mov dword [esp + 0x24], esp
lea eax, [esp + 0xe0]
push edx
push eax
mov byte [esp + 0x1f0], 0x3c
call fcn.00404ee0
push ecx
mov byte [esp + 0x1ec], 0x3d
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60e0c0
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4f8ca8
mov ecx, dword [esp + 0x28]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x4f8ca8
mov al, byte [edi + ebp]
push esi
cmp al, 1
lea ecx, [esp + 0x24]
jne 0x4f8c39
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x3e
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00411fd0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1ec], 0x3f
call fcn.004e6470
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00558070
jmp 0x4f8c8d
call fcn.004e6470
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00558070
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x1dc], 0x40
call fcn.004e6470
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.00411fd0
push ecx
mov byte [esp + 0x1ec], 0x41
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x60df50
call fcn.00558100
mov ecx, dword [0x619a64]
mov byte [esp + 0x1ec], bl
call fcn.00548740
inc esi
add ebp, 0x1c
jmp 0x4f8ba3
mov ecx, dword [0x619a64]
call fcn.00548950
push 0xa
mov esi, eax
call fcn.00401520
add esp, 4
cmp si, 1
je 0x4f929b
test si, si
jne 0x4f8933
push 0
push 4
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x44
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60e0b0
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
cmp ax, bx
je 0x4f8d51
jmp 0x4f8933
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x36
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60df68
jmp 0x4f8dfe
mov dl, byte [esp + 0x40]
mov eax, dword [esp + 0x68]
mov byte [0x60dc14], dl
mov ecx, eax
movsx dx, byte [0x60dc10]
sar ecx, 8
mov byte [0x60dc15], cl
push edx
push 0x60dc11
lea ecx, [esp + 0x3c]
mov byte [0x60dc16], al
call fcn.00558600
lea eax, [esp + 0x3c]
lea edx, [esp + 0x34]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00558070
call fcn.00503c80
add esp, 8
test ax, ax
push 0
push 1
push ecx
mov ecx, esp
jg 0x4f8dd8
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x45
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609440
jmp 0x4f8dfe
mov dword [esp + 0x20], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x46
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x60e0a8
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
xor ebp, ebp
jmp 0x4f7bbe
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x4f8e40
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f8e37
cmp al, 0xff
je 0x4f8e37
dec al
mov byte [ecx], al
jmp 0x4f8e40
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov edi, eax
je 0x4f9184
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f8e8b
mov esi, dword [esp + 0x24]
push esi
jmp 0x4f93a5
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x17
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4f8f0b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f8f02
cmp al, 0xff
je 0x4f8f02
dec al
mov byte [ecx], al
jmp 0x4f8f0b
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov edi, eax
je 0x4f928a
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f8f62
jmp 0x4f9286
mov eax, dword [esp + 0x50]
xor esi, esi
cmp eax, esi
je 0x4f8f9c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f8f93
cmp al, 0xff
je 0x4f8f93
dec al
mov byte [ecx], al
jmp 0x4f8f9c
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov edi, eax
je 0x4f9184
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f8fe7
mov esi, dword [esp + 0x24]
push esi
jmp 0x4f93a5
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x25
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4f9067
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f905e
cmp al, 0xff
je 0x4f905e
dec al
mov byte [ecx], al
jmp 0x4f9067
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
cmp esi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov edi, eax
je 0x4f928a
mov ecx, esi
call fcn.004e2e40
add esi, 0x1c
cmp esi, edi
jne 0x4f90be
jmp 0x4f9286
mov eax, dword [esp + 0x50]
xor esi, esi
cmp eax, esi
je 0x4f90f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f90ef
cmp al, 0xff
je 0x4f90ef
dec al
mov byte [ecx], al
jmp 0x4f90f8
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
or ebp, 0xffffffff
cmp esi, edi
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x30], esi
je 0x4f9184
mov bl, 0x30
push 1
lea ecx, [esi + 0xc]
mov dword [esp + 0x1d8], 0x31
call fcn.00401850
lea ecx, [esi + 8]
mov byte [esp + 0x1d4], bl
call fcn.005581a0
lea ecx, [esi + 4]
mov dword [esp + 0x1d4], ebp
call fcn.005581a0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x30], esi
jne 0x4f9142
mov esi, dword [esp + 0x24]
push esi
jmp 0x4f93a5
push 0
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x6094cc
call fcn.00558100
push ecx
mov byte [esp + 0x1e4], 0x37
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x609440
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x1e4], bl
call fcn.00543af0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4f91f2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f91e9
cmp al, 0xff
je 0x4f91e9
dec al
mov byte [ecx], al
jmp 0x4f91f2
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
or ebp, 0xffffffff
cmp esi, edi
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x30], esi
je 0x4f928a
mov bl, 0x38
push 1
lea ecx, [esi + 0xc]
mov dword [esp + 0x1d8], 0x39
call fcn.00401850
lea ecx, [esi + 8]
mov byte [esp + 0x1d4], bl
call fcn.005581a0
lea ecx, [esi + 4]
mov dword [esp + 0x1d4], ebp
call fcn.005581a0
add esi, 0x1c
cmp esi, edi
mov dword [esp + 0x30], esi
jne 0x4f9248
mov esi, dword [esp + 0x24]
push esi
call fcn.005bc500
add esp, 4
xor ax, ax
jmp 0x4f93b1
mov eax, dword [esp + 0x50]
xor ebp, ebp
cmp eax, ebp
je 0x4f92c2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4f92b9
cmp al, 0xff
je 0x4f92b9
dec al
mov byte [ecx], al
jmp 0x4f92c2
push ecx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov byte [esp + 0x1d4], 1
call fcn.005581a0
lea ecx, [esp + 0x34]
mov byte [esp + 0x1d4], 0
call fcn.005581a0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, eax
mov dword [esp + 0x1d4], 0xffffffff
mov ebx, eax
mov dword [esp + 0x30], edi
je 0x4f93a4
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
cmp eax, ebp
mov dword [esp + 0x1d4], 0x43
je 0x4f9365
push eax
mov ecx, esi
call fcn.0044c9c0
cmp byte [eax], 0
je 0x4f9352
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.0044c9c0
cmp byte [eax], 0xff
je 0x4f9352
mov ecx, dword [esi + 4]
push ecx
mov ecx, esi
call fcn.0044c9c0
dec byte [eax]
jmp 0x4f9365
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 4]
add edx, 2
dec eax
push edx
push eax
mov ecx, esi
call fcn.005107f0
lea ecx, [edi + 8]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov byte [esp + 0x1d4], 0x42
call fcn.005581a0
lea ecx, [edi + 4]
mov dword [esp + 0x1d4], 0xffffffff
call fcn.005581a0
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x4f9311
mov edi, dword [esp + 0x24]
push edi
call fcn.005bc500
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c8
ret