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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
add esp, 0xfffffb18
mov esi, ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 8], 0
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
cmp dword [esi], 0
sete byte [esp + 0x18]
cmp byte [esp + 0x18], 0
je 0x4face2
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x4faccd
inc eax
mov dword [esp + 0x54], eax
xor ebx, ebx
imul eax, ebx, 0x214
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x2c]
cmp byte [edx + eax*8 + 0x1c], 0
jne 0x4facc6
inc dword [esp + 0x10]
inc ebx
dec dword [esp + 0x54]
jne 0x4facae
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x10]
mov edx, dword [esp + 4]
mov edx, dword [edx + 0xc]
mov eax, esi
call fcn.004f39c0
cmp dword [esp + 0x10], 2
jl 0x4fbaac
cmp dword [esp + 0x10], 0x20
jg 0x4fbaac
lea eax, [esp + 0x60]
xor ecx, ecx
mov edx, 0x11d0
call fcn.004032f4
xor edi, edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xbf8
mov word [esp + eax*8 + 0x94], 0x3222
mov dword [esp + eax*8 + 0x90], 0xc00
mov dword [esp + eax*8 + 0x6c], 0xe
inc edi
mov dword [esp + 0x1c], edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xbfe
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 2
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc00
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x78], 2
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
imul eax, edi, 0x13
xor edx, edx
mov dword [esp + eax*8 + 0x60], edx
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 0x11
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc01
mov dword [esp + eax*8 + 0x6c], 5
mov dword [esp + eax*8 + 0x90], 1
mov dword [esp + eax*8 + 0x7c], 4
xor ebp, ebp
lea edx, [ebp + ebp*2]
mov dword [esp + edx*8 + 0x129c], 0xfe00
mov ecx, 0x4fbac0
mov dword [esp + edx*8 + 0x12a0], ecx
mov ecx, 0x4fbac8
mov dword [esp + edx*8 + 0x12a4], ecx
xor ecx, ecx
mov dword [esp + edx*8 + 0x12a8], ecx
lea edx, [esp + edx*8 + 0x129c]
mov dword [esp + eax*8 + 0x80], edx
mov dword [esp + eax*8 + 0x84], 2
inc edi
xor ebx, ebx
test ebx, ebx
jne 0x4fae10
mov edx, 0x4fbad0
jmp 0x4fae1e
cmp ebx, 4
jne 0x4fae1c
mov edx, 0x4fbad8
jmp 0x4fae1e
xor edx, edx
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], edx
mov dword [esp + eax*8 + 0x6c], 5
mov dword [esp + eax*8 + 0x90], 1
mov dword [esp + eax*8 + 0x7c], 4
mov edx, ebx
and edx, 3
mov ecx, dword [edx*4 + 0x66abac]
mov dword [esp + eax*8 + 0x80], ecx
mov dword [esp + eax*8 + 0x84], 1
dec edx
jg 0x4fae6b
mov dword [esp + eax*8 + 0x70], 9
jmp 0x4fae73
mov dword [esp + eax*8 + 0x70], 6
inc edi
inc ebx
cmp ebx, 8
jne 0x4fae05
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc02
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc04
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x78], 3
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x78], 3
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc06
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x78], 4
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
imul eax, edi, 0x13
xor edx, edx
mov dword [esp + eax*8 + 0x60], edx
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 0x11
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc45
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 2
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc1c
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 1
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 8
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc48
mov dword [esp + eax*8 + 0x6c], 5
mov dword [esp + eax*8 + 0x90], 1
mov dword [esp + eax*8 + 0x7c], 4
mov ebp, 1
lea edx, [ebp + ebp*2]
mov dword [esp + edx*8 + 0x129c], 0xfe00
mov dword [esp + edx*8 + 0x12a0], 0xc09
mov dword [esp + edx*8 + 0x12a4], 0xc08
xor ecx, ecx
mov dword [esp + edx*8 + 0x12a8], ecx
lea edx, [esp + edx*8 + 0x129c]
mov dword [esp + eax*8 + 0x80], edx
mov dword [esp + eax*8 + 0x84], 2
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc08
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x6c], 0xfffffffe
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc0a
mov dword [esp + eax*8 + 0x6c], 5
mov dword [esp + eax*8 + 0x90], 1
mov dword [esp + eax*8 + 0x7c], 4
mov ebp, 2
lea edx, [ebp + ebp*2]
mov dword [esp + edx*8 + 0x129c], 0xfe00
mov edx, 0x4fbae0
lea ecx, [ebp + ebp*2]
mov dword [esp + ecx*8 + 0x12a0], edx
lea edx, [ebp + ebp*2]
xor ecx, ecx
mov dword [esp + edx*8 + 0x12a4], ecx
lea edx, [ebp + ebp*2]
lea edx, [esp + edx*8 + 0x129c]
mov dword [esp + eax*8 + 0x80], edx
mov dword [esp + eax*8 + 0x84], 1
inc edi
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x60], 0xc0b
mov eax, 0x4fbabc
imul edx, edi, 0x13
mov dword [esp + edx*8 + 0x6c], eax
imul eax, edi, 0x13
xor edx, edx
mov dword [esp + eax*8 + 0x78], edx
imul eax, edi, 0x13
mov dword [esp + eax*8 + 0x7c], 4
inc edi
xor eax, eax
mov dword [esp + 0x50], eax
imul eax, dword [esp + 0x1c], 0x13
movzx edx, word [esp + 0x50]
mov word [esp + eax*8 + 0x94], dx
xor ebp, ebp
mov eax, dword [esi]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 4]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
xor ebx, ebx
cmp ebx, 4
jge 0x4fb0fb
mov eax, dword [esi + 4]
and eax, 0xf4
cmp eax, 4
je 0x4fb10d
cmp ebx, 4
jl 0x4fb11a
mov eax, dword [esi + 4]
and eax, 0xf08
cmp eax, 8
jne 0x4fb11a
mov dword [esp + ebp*4 + 0x1230], 1
jmp 0x4fb12c
lea ecx, [ebx + 4]
mov eax, dword [esi + 4]
shr eax, cl
and eax, 1
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
inc ebx
cmp ebx, 8
jne 0x4fb0e9
mov eax, dword [esi + 8]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 0xc]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 0x10]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 0x14]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 0x18]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
lea eax, [esp + ebp*4 + 0x1230]
mov edx, dword [esi + 0x1c]
mov dword [eax], edx
mov edx, dword [esi + 0x20]
mov dword [eax + 4], edx
add ebp, 2
xor eax, eax
mov dword [esp + ebp*4 + 0x1230], eax
cmp byte [esi + 0x25], 0
je 0x4fb196
or dword [esp + ebp*4 + 0x1230], 1
cmp byte [esi + 0x24], 0
je 0x4fb1a4
or dword [esp + ebp*4 + 0x1230], 2
inc ebp
lea eax, [esp + 0x12e4]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x2c]
mov edx, 0x20
call fcn.00411370
test al, al
jne 0x4fb1cb
mov byte [esp + 0x12e4], 0
jmp 0x4fb237
mov eax, dword [esi]
dec eax
test eax, eax
jl 0x4fb237
inc eax
mov dword [esp + 0x54], eax
xor ebx, ebx
lea eax, [esi + 0x2c]
mov dword [esp + 0x5c], eax
test ebx, ebx
jle 0x4fb1f6
mov edx, 0x4fbaec
mov eax, dword [esp + 0x20]
call fcn.004081c8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
movsx eax, byte [eax]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x12e4]
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, 0x1ff
sub eax, edx
push eax
lea ecx, [esp + 0x2c]
mov edx, 0x4fbabc
mov eax, dword [esp + 0x24]
call fcn.004112cc
add dword [esp + 0x20], eax
inc ebx
inc dword [esp + 0x5c]
dec dword [esp + 0x54]
jne 0x4fb1e0
lea eax, [esp + 0x12e4]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
movzx eax, byte [esi + 0x26]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
mov eax, dword [esi + 0x28]
mov dword [esp + ebp*4 + 0x1230], eax
inc ebp
lea eax, [esp + 0x1230]
push eax
mov eax, ebp
add eax, eax
add eax, eax
push eax
lea edx, [esp + 0x68]
mov ecx, edi
mov eax, dword [esp + 8]
call fcn.00441e98
cmp ax, 1
jne 0x4fbaac
xor ebp, ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi], eax
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 4], eax
inc ebp
xor ebx, ebx
test byte [esp + ebp*4 + 0x1230], 1
je 0x4fb2c4
lea ecx, [ebx + 4]
mov eax, 1
shl eax, cl
or dword [esi + 4], eax
cmp ebx, 4
jge 0x4fb2c0
or dword [esi + 4], 4
jmp 0x4fb2c4
or dword [esi + 4], 8
inc ebp
inc ebx
cmp ebx, 8
jne 0x4fb29e
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 8], eax
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 0xc], eax
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 0x10], eax
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 0x14], eax
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 0x18], eax
inc ebp
lea eax, [esp + ebp*4 + 0x1230]
mov edx, dword [eax]
mov dword [esi + 0x1c], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x20], edx
add ebp, 2
test byte [esp + ebp*4 + 0x1230], 1
setne al
mov byte [esi + 0x25], al
test byte [esp + ebp*4 + 0x1230], 2
setne al
mov byte [esi + 0x24], al
inc ebp
inc ebp
test byte [esp + ebp*4 + 0x1230], 1
setne al
mov byte [esi + 0x26], al
inc ebp
mov eax, dword [esp + ebp*4 + 0x1230]
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esp + 0x50], eax
cmp dword [esi], 2
jge 0x4fb364
mov dword [esi], 2
jmp 0x4fb0be
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
add edx, edx
cmp eax, edx
jg 0x4fb380
cmp byte [esi + 0x24], 0
jne 0x4fb37b
cmp dword [esi], 9
jg 0x4fb380
cmp dword [esi], 0x20
jle 0x4fb3c0
mov eax, dword [esp + 0x10]
add eax, eax
cmp eax, dword [esi]
jge 0x4fb392
mov eax, dword [esp + 0x10]
add eax, eax
mov dword [esi], eax
cmp byte [esi + 0x24], 0
jne 0x4fb3ac
cmp dword [esi], 9
jle 0x4fb0be
mov dword [esi], 9
jmp 0x4fb0be
cmp dword [esi], 0x20
jle 0x4fb0be
mov dword [esi], 0x20
jmp 0x4fb0be
cmp dword [esi], 2
jg 0x4fb3d7
test dword [esi + 4], 0xfffffffe
je 0x4fb3d7
and dword [esi + 4], 1
jmp 0x4fb0be
cmp dword [esi], 3
jg 0x4fb3f1
test dword [esi + 4], 0xf08
je 0x4fb3f1
and dword [esi + 4], 0xfffff0f7
jmp 0x4fb0be
cmp dword [esi + 4], 0
jne 0x4fb41a
cmp dword [esi], 2
jne 0x4fb405
or dword [esi + 4], 1
jmp 0x4fb0be
cmp dword [esi], 3
jl 0x4fb0be
or dword [esi + 4], 0xf4
jmp 0x4fb0be
mov eax, dword [esi + 8]
mov edx, dword [esp + 4]
cmp eax, dword [edx + 0x10]
jb 0x4fb432
mov eax, dword [esi + 8]
call fcn.00411328
test al, al
jne 0x4fb464
mov ebx, dword [esp + 4]
mov ebx, dword [ebx + 0x10]
jmp 0x4fb43d
add ebx, ebx
mov eax, ebx
add eax, eax
cdq
push edx
push eax
mov eax, dword [esi + 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb458
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4fb43b
jmp 0x4fb45c
pop edx
pop eax
jge 0x4fb43b
mov dword [esi + 8], ebx
jmp 0x4fb0be
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jbe 0x4fb477
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
jmp 0x4fb0be
mov eax, dword [esi + 0xc]
call fcn.00411328
test al, al
jne 0x4fb4af
mov ebx, dword [esi + 8]
jmp 0x4fb48a
add ebx, ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0xc]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb4a3
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4fb488
jmp 0x4fb4a7
pop edx
pop eax
jg 0x4fb488
mov dword [esi + 0xc], ebx
jmp 0x4fb0be
push 0
push 2
mov eax, dword [esi]
cdq
push edx
push eax
mov eax, dword [0x66d798]
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
xor edx, edx
div ecx
xor edx, edx
call fcn.0040517c
call fcn.0040517c
mov ebp, eax
mov ebx, 1
jmp 0x4fb4e1
add ebx, ebx
mov eax, ebx
add eax, eax
cdq
push edx
push eax
mov eax, ebp
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb4fb
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4fb4df
jmp 0x4fb4ff
pop edx
pop eax
jge 0x4fb4df
mov ebp, ebx
test ebp, ebp
jne 0x4fb50a
mov ebp, 1
cmp ebp, 0x100
ja 0x4fb517
mov ebp, pe_nt_image_headers32
cmp dword [esi + 0x10], 1
jae 0x4fb524
mov dword [esi + 0x10], 1
mov eax, dword [esi + 0x10]
call fcn.00411328
test al, al
jne 0x4fb560
mov ebx, 1
jmp 0x4fb539
add ebx, ebx
mov eax, ebx
add eax, eax
cdq
push edx
push eax
mov eax, dword [esi + 0x10]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb554
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4fb537
jmp 0x4fb558
pop edx
pop eax
jge 0x4fb537
mov dword [esi + 0x10], ebx
jmp 0x4fb0be
cmp ebp, dword [esi + 0x10]
jae 0x4fb568
mov ebp, dword [esi + 0x10]
cmp dword [esi + 0x14], 1
jae 0x4fb575
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x4fb588
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], eax
jmp 0x4fb0be
cmp ebp, dword [esi + 0x14]
jae 0x4fb595
mov dword [esi + 0x14], ebp
jmp 0x4fb0be
mov eax, dword [esi + 0x14]
call fcn.00411328
test al, al
jne 0x4fb5db
mov ebx, 1
jmp 0x4fb5aa
add ebx, ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb5c3
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4fb5a8
jmp 0x4fb5c7
pop edx
pop eax
jg 0x4fb5a8
mov dword [esi + 0x14], ebx
cmp ebp, dword [esi + 0x14]
jae 0x4fb0be
mov dword [esi + 0x14], ebp
jmp 0x4fb0be
cmp dword [esi + 0x18], 0
jbe 0x4fb616
mov eax, dword [esi + 0x18]
call fcn.00411328
test al, al
jne 0x4fb616
mov dword [esp + 0x14], 1
mov eax, dword [esi + 0x18]
and eax, dword [esp + 0x14]
jne 0x4fb60a
mov eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
jmp 0x4fb5f5
mov eax, dword [esp + 0x14]
mov dword [esi + 0x18], eax
jmp 0x4fb0be
mov byte [esp + 0x40], 0
movzx eax, byte [esi + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
call fcn.004f3b04
mov dword [esp + 0x2c], eax
mov ebp, 1
mov ebx, dword [esi + 8]
jmp 0x4fb662
add ebx, ebx
inc ebp
cmp ebp, 0xff
jle 0x4fb662
sar ebx, 1
jns 0x4fb65a
adc ebx, 0
mov dword [esi + 0xc], ebx
jmp 0x4fb0be
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0xc]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb67b
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4fb648
jmp 0x4fb67f
pop edx
pop eax
jg 0x4fb648
mov dword [esp + 0x30], 1
mov ebx, dword [esi + 0x10]
jmp 0x4fb6ab
add ebx, ebx
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 0xff
jle 0x4fb6ab
sar ebx, 1
jns 0x4fb6a3
adc ebx, 0
mov dword [esi + 0x14], ebx
jmp 0x4fb0be
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x14]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb6c4
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4fb68c
jmp 0x4fb6c8
pop edx
pop eax
jg 0x4fb68c
cmp byte [esi + 0x24], 0
jne 0x4fb6e2
lea eax, [esi + 0x2c]
xor ecx, ecx
mov edx, 0x20
call fcn.004032f4
jmp 0x4fb840
xor ebx, ebx
lea eax, [esp + 0x12e4]
mov dword [esp + 0x20], eax
jmp 0x4fb75d
mov eax, dword [esp + 0x20]
cmp byte [eax], 0xd
je 0x4fb71e
mov eax, dword [esp + 0x20]
cmp byte [eax], 0xa
je 0x4fb71e
mov eax, dword [esp + 0x20]
cmp byte [eax], 0x2c
je 0x4fb71e
mov eax, dword [esp + 0x20]
cmp byte [eax], 0x20
je 0x4fb71e
mov eax, dword [esp + 0x20]
cmp byte [eax], 9
jne 0x4fb724
inc dword [esp + 0x20]
jmp 0x4fb75d
push 1
lea ecx, [esp + 0x2c]
mov edx, 0x4fbabc
mov eax, dword [esp + 0x24]
call fcn.0040db64
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
jle 0x4fb766
mov eax, dword [esp + 0x24]
add dword [esp + 0x20], eax
cmp ebx, 0x20
jl 0x4fb753
inc ebx
jmp 0x4fb766
movzx eax, byte [esp + 0x28]
mov byte [esi + ebx + 0x2c], al
inc ebx
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x4fb6f1
test ebx, ebx
jne 0x4fb7d2
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi]
dec eax
test eax, eax
jl 0x4fb7c5
inc eax
mov dword [esp + 0x54], eax
xor ebx, ebx
lea eax, [esi + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 4]
cmp ebx, dword [eax + 0xc]
jge 0x4fb7a2
imul eax, ebx, 0x214
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x2c]
cmp byte [edx + eax*8 + 0x1c], 0
je 0x4fb7ab
mov eax, dword [esp + 0x5c]
mov byte [eax], 0xff
jmp 0x4fb7ba
movzx eax, byte [esp + 0xc]
mov edx, dword [esp + 0x5c]
mov byte [edx], al
inc dword [esp + 0xc]
inc ebx
inc dword [esp + 0x5c]
dec dword [esp + 0x54]
jne 0x4fb785
mov dword [esp + 0x50], 1
jmp 0x4fb0be
cmp ebx, dword [esi]
je 0x4fb7e3
mov dword [esp + 0x50], 1
jmp 0x4fb0be
mov eax, dword [esi]
sub eax, 2
test eax, eax
jl 0x4fb840
inc eax
mov dword [esp + 0x54], eax
xor ebx, ebx
lea eax, [esi + 0x2c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
cmp byte [eax], 0xff
je 0x4fb835
lea eax, [ebx + 1]
mov edx, dword [esi]
dec edx
sub edx, eax
jl 0x4fb835
inc edx
mov dword [esp + 0x58], edx
lea eax, [esi + eax + 0x2c]
movzx edx, byte [eax]
mov ecx, dword [esp + 0x5c]
cmp dl, byte [ecx]
jne 0x4fb82e
mov dword [esp + 0x50], 1
jmp 0x4fb0be
inc eax
dec dword [esp + 0x58]
jne 0x4fb816
inc ebx
inc dword [esp + 0x5c]
dec dword [esp + 0x54]
jne 0x4fb7fa
mov dword [esp + 0x34], 1
cmp byte [esi + 0x24], 0
jne 0x4fb8a7
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
jl 0x4fb85a
mov eax, dword [esi]
jmp 0x4fb85e
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
test edx, edx
jle 0x4fb87a
mov dword [esp + 0x54], edx
mov edx, eax
imul edx, dword [esp + 0x34]
mov dword [esp + 0x34], edx
dec eax
dec dword [esp + 0x54]
jne 0x4fb868
mov eax, dword [esi]
cmp eax, dword [esp + 0x10]
jle 0x4fb8a7
mov eax, dword [esi]
sub eax, dword [esp + 0x10]
test eax, eax
jle 0x4fb8a7
mov dword [esp + 0x54], eax
mov ebx, 1
mov eax, dword [esp + 0x34]
cdq
idiv ebx
mov dword [esp + 0x34], eax
inc ebx
dec dword [esp + 0x54]
jne 0x4fb895
push esi
lea eax, [esp + 0x40]
push eax
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 0x10]
mov eax, dword [esi]
movzx ecx, byte [esp + 0x48]
call fcn.004f393c
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
cdq
push edx
push eax
mov eax, dword [esp + 0x3c]
cdq
push edx
push eax
mov eax, dword [esp + 0x40]
cdq
push edx
push eax
mov eax, ebp
cdq
push edx
push eax
mov eax, dword [esp + 0x4c]
cdq
call fcn.00405158
call fcn.00405158
call fcn.00405158
call fcn.00405158
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
push 0
push 0x24
push dword [esp + 0x54]
push dword [esp + 0x54]
mov eax, 2
xor edx, edx
call fcn.00405158
push edx
push eax
mov eax, ebp
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.00405158
cmp edx, 0
jne 0x4fb939
cmp eax, 0x7fffffff
jbe 0x4fb952
jmp 0x4fb93b
jle 0x4fb952
mov ecx, 2
mov edx, 0xc0f
mov eax, dword [esp]
call fcn.0043e1d4
jmp 0x4fb0be
cmp dword [esp + 0x4c], 0
jne 0x4fb965
cmp dword [esp + 0x48], 0x400000
jbe 0x4fb982
jmp 0x4fb967
jle 0x4fb982
mov ecx, 0x311
mov edx, 0xc0e
mov eax, dword [esp]
call fcn.0043e1d4
cmp eax, 6
jne 0x4fb0be
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
cmp eax, dword [esi + 0x28]
jbe 0x4fb99d
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x28], eax
jmp 0x4fb0be
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x28]
jae 0x4fb9b0
mov eax, dword [esi + 0xc]
mov dword [esi + 0x28], eax
jmp 0x4fb0be
mov eax, dword [esi + 0x28]
call fcn.00411328
test al, al
jne 0x4fb9fc
mov ebx, 1
jmp 0x4fb9c5
add ebx, ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [esi + 0x28]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4fb9de
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4fb9c3
jmp 0x4fb9e2
pop edx
pop eax
jg 0x4fb9c3
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x28]
jae 0x4fb0be
mov eax, dword [esi + 0xc]
mov dword [esi + 0x28], eax
jmp 0x4fb0be
cmp byte [esp + 0x18], 0
je 0x4fbaa7
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [esp + 0x10]
jle 0x4fba8b
mov ebx, dword [esp + 4]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jle 0x4fba80
dec ebx
imul eax, ebx, 0x214
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x2c]
cmp byte [edx + eax*8 + 0x1c], 0
je 0x4fba7c
mov eax, dword [esp + 4]
dec dword [eax + 0xc]
mov eax, dword [esp + 4]
cmp ebx, dword [eax + 0xc]
jge 0x4fba7c
imul eax, ebx, 0x214
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x2c]
lea edx, [edx + eax*8]
imul eax, ebx, 0x214
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x2c]
lea eax, [ecx + eax*8 + 0x10a0]
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0xc]
sub ecx, ebx
imul ecx, ecx, 0x10a0
call fcn.00402da0
test ebx, ebx
jg 0x4fba1f
mov eax, dword [esp + 4]
xor edx, edx
call fcn.00498898
mov ecx, esi
mov edx, dword [esp + 4]
mov edx, dword [edx + 0x10]
mov eax, dword [esp + 4]
mov eax, dword [eax + 0xc]
call fcn.004fab18
mov edx, dword [esp + 4]
mov dword [edx + 0x24], eax
mov byte [esp + 8], 1
movzx eax, byte [esp + 8]
add esp, 0x14e8
pop ebp
pop edi
pop esi
pop ebx
ret