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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x101e3070]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x18], 0
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x3c]
mov ebx, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
push edi
cmove eax, dword [esp + 0x1c]
mov edx, esi
mov edi, dword [ebx + 8]
push eax
mov dword [esp + 0x18], ecx
mov ecx, ebx
push 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x48], 0
call fcn.1004ecb0
add esp, 8
mov dword [esp + 0x1c], eax
mov ecx, esi
call fcn.1004ca40
mov cl, byte [ebx + 0x13]
inc dword [ebx + 0x68]
mov byte [esp + 0x3f], al
test cl, cl
jne 0x1004f6db
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
jmp 0x1004f6e7
dec cl
movzx eax, cl
mov byte [ebx + 0x13], cl
mov esi, dword [ebx + eax*4 + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push esi
mov dword [esp + 0x34], esi
mov edx, dword [edx + 0xc]
call fcn.100516c0
mov eax, dword [esp + 0x14]
add esp, 4
cmp dword [esp + 0x1c], 5
jne 0x1004fac8
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.1004c8a0
mov edx, dword [edi + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], edx
mov eax, dword [edx + 0x70]
mov dword [esp + 0x24], eax
lea ecx, [eax + 1]
mov dword [edx + 0x70], ecx
lea ecx, [eax - 1]
test eax, ecx
jne 0x1004f75e
mov ecx, dword [esp + 0x28]
lea eax, [eax*8 + 4]
mov edx, dword [edx + 0x74]
push 0
push eax
mov ecx, dword [ecx]
call fcn.1001c060
mov edx, dword [esp + 0x30]
add esp, 8
mov dword [edx + 0x74], eax
mov eax, dword [edx + 0x74]
test eax, eax
je 0x1004f770
mov ecx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0xffffffff
mov eax, dword [esp + 0x18]
not dword [esp + 0x24]
mov dword [esp + 0x10], 0
cmp eax, dword [esp + 0x14]
je 0x1004f7b7
mov al, byte [ebx + 0x13]
test al, al
jne 0x1004f795
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
jmp 0x1004f7a1
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0x18]
push eax
push esi
push esi
mov edx, 0x55
mov dword [esp + 0x1c], eax
mov ecx, edi
call fcn.10038e20
add esp, 0xc
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
cmp dword [eax], 0
jle 0x1004f9a0
xor ecx, ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [eax + 4]
mov edx, dword [edx + ecx]
mov ecx, ebx
call fcn.10051530
add esp, 4
mov ecx, eax
cmp dword [esp + 0x10], 0
mov dword [esp + 0x20], ecx
je 0x1004f86c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax]
call fcn.1004e860
test eax, eax
je 0x1004f868
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x1004f831
mov eax, dword [esp + 0x10]
mov edx, 0x55
push eax
push dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.10038de0
add esp, 0xc
jmp 0x1004f868
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov edx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x30]
mov word [eax + ecx*4], 0x55
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
dec eax
cmp dword [esp + 0x28], eax
jl 0x1004f8c0
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], eax
jne 0x1004f8c0
push 0xfffffffffffffffc
push dword [esp + 0x20]
mov edx, 0x4e
push ecx
push eax
push esi
mov ecx, edi
call fcn.10039210
mov eax, dword [edi]
add esp, 0x14
cmp byte [eax + 0x41], 0
jne 0x1004f944
mov eax, dword [edi + 0x20]
mov dl, byte [esp + 0x3f]
or dl, 0x10
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], dl
jmp 0x1004f944
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
cmp dword [eax + 0x54], edx
jg 0x1004f8e4
push ecx
push dword [esp + 0x28]
mov edx, 0x4f
mov ecx, edi
push esi
call fcn.10038de0
add esp, 0xc
mov edx, eax
jmp 0x1004f91b
lea eax, [edx + 1]
mov dword [edi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0xc], esi
mov esi, dword [esp + 0x30]
mov word [eax + ecx*4], 0x4f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0xfffffffffffffffc
push dword [esp + 0x20]
mov ecx, edi
call fcn.10039ac0
mov eax, dword [edi]
add esp, 8
cmp byte [eax + 0x41], 0
jne 0x1004f944
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 4]
lea edx, [eax + eax*4]
mov al, byte [esp + 0x3f]
mov byte [ecx + edx*4 - 0x11], al
mov edx, dword [esp + 0x38]
test edx, edx
je 0x1004f980
mov al, byte [ebx + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x1004f980
xor ecx, ecx
lea eax, [ebx + 0x78]
nop dword [eax]
cmp dword [eax + 0xc], edx
je 0x1004f97c
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1004f960
movzx eax, byte [esp + 0xf]
mov dword [ebx + eax*4 + 0x18], edx
inc byte [ebx + 0x13]
jmp 0x1004f980
mov byte [eax + 6], 1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add dword [esp + 0x34], 0x18
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [ecx]
mov eax, ecx
mov ecx, dword [esp + 0x34]
jl 0x1004f7d2
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1004fa5d
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x1004f9cf
push 0
push dword [esp + 0x1c]
mov ecx, edi
push edx
mov edx, 0x4c
call fcn.10038de0
add esp, 0xc
jmp 0x1004fa02
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x4c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x54], ecx
jg 0x1004fa26
push 0
push dword [esp + 0x18]
mov edx, 0xe
mov ecx, edi
push 0
call fcn.10038de0
add esp, 0xc
jmp 0x1004fa5d
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xe
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x74]
test ecx, ecx
je 0x1004fa79
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x5c], eax
mov edx, dword [esp + 0x10]
test edx, edx
je 0x1004fbea
mov al, byte [ebx + 0x13]
mov byte [esp + 0xf], al
cmp al, 8
jae 0x1004fbea
xor ecx, ecx
lea eax, [ebx + 0x78]
cmp dword [eax + 0xc], edx
je 0x1004fabf
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1004faa0
movzx eax, byte [esp + 0xf]
mov dword [ebx + eax*4 + 0x18], edx
inc byte [ebx + 0x13]
jmp 0x1004fbea
mov byte [eax + 6], 1
jmp 0x1004fbea
mov ecx, dword [eax + 0xc]
call fcn.1004e860
test eax, eax
je 0x1004fb33
mov eax, dword [esp + 0x18]
mov ecx, edi
cmp eax, dword [esp + 0x14]
jne 0x1004faf1
push eax
push esi
mov edx, 0x4c
call fcn.10038f70
add esp, 8
jmp 0x1004fb33
push esi
mov edx, 0x4d
call fcn.10038f00
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, 0x6e
mov ecx, edi
push dword [esp + 0x14]
push dword [eax + 0x1c]
call fcn.10038f70
mov edx, dword [esp + 0x20]
add esp, 8
mov ecx, edi
call fcn.10038fe0
mov edx, esi
mov ecx, edi
call fcn.10039740
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x1c], 1
mov ecx, edi
jne 0x1004fb6b
push dword [esp + 0x14]
mov edx, 0x27
push esi
call fcn.10038f70
mov eax, dword [esp + 0x18]
mov edx, 0x4a
push esi
push dword [esp + 0x20]
mov ecx, edi
push dword [eax + 0x1c]
call fcn.10038e20
add esp, 0x14
jmp 0x1004fbea
push 1
lea eax, [esp + 0x43]
mov edx, 0x31
push eax
push 0
push 1
push esi
call fcn.10039210
mov eax, dword [esp + 0x24]
add esp, 0x14
cmp dword [esp + 0x40], 0
mov ecx, edi
push 1
push esi
jne 0x1004fbaa
push dword [esp + 0x1c]
mov edx, 0x46
push dword [eax + 0x1c]
call fcn.10039350
add esp, 0x10
jmp 0x1004fbea
push 0
push dword [eax + 0x1c]
mov edx, 0x49
call fcn.10039350
push dword [esp + 0x28]
mov edx, 0x4c
mov ecx, edi
push dword [esp + 0x54]
mov esi, eax
call fcn.10038f70
mov edx, dword [esp + 0x2c]
add esp, 0x18
mov ecx, edi
call fcn.10038fe0
mov edx, esi
mov ecx, edi
call fcn.10039740
mov esi, dword [esp + 0x30]
test esi, esi
je 0x1004fc1e
mov dl, byte [ebx + 0x13]
cmp dl, 8
jae 0x1004fc1e
xor ecx, ecx
lea eax, [ebx + 0x78]
nop dword [eax + eax]
cmp dword [eax + 0xc], esi
je 0x1004fc1a
inc ecx
add eax, 0x14
cmp ecx, 0xa
jl 0x1004fc00
movzx eax, dl
mov dword [ebx + eax*4 + 0x18], esi
inc byte [ebx + 0x13]
jmp 0x1004fc1e
mov byte [eax + 6], 1
mov ecx, ebx
call fcn.1004ffd0
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a66bf
mov esp, ebp
pop ebp
ret