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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1b8]
mov eax, dword [eax]
test byte [eax + 0x40], 1
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
je 0x4891b0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x1c]
mov ebx, dword [ebp + 0x14]
lea eax, [eax + eax*4]
shl eax, 4
mov edx, dword [eax + edi + 0x38]
mov dword [esp + 0x1c], eax
lea eax, [eax + edi + 0x1c]
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
test ebx, ebx
je 0x48921d
cmp dword [ebp + 0x10], 0
jne 0x4891a7
cmp dword [edi], 1
jg 0x4891a7
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4891fc
test dword [eax + 4], 0x200000
jne 0x4891a7
mov ecx, dword [esi]
call fcn.00466010
test eax, 0x200000
jne 0x4891a7
mov ecx, dword [esi + 0x2c]
call fcn.00466010
test eax, 0x200000
jne 0x4891a7
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x1c]
test eax, eax
je 0x489231
cmp dword [esi + 0x38], 0
jne 0x4891a7
cmp dword [edx + 0x3c], 0
jne 0x4891a7
mov edx, dword [esi + 8]
test edx, 0x100
je 0x48924e
test eax, eax
jne 0x4891a7
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4891a7
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
test cl, 1
jne 0x4891a7
test eax, eax
je 0x489283
cmp dword [edi], 1
jg 0x4891a7
cmp dword [ebp + 0x10], 0
jne 0x4891a7
mov edi, edx
and edi, 1
je 0x489292
test ebx, ebx
jne 0x4891a7
cmp dword [esi + 0x2c], 0
mov ebx, dword [esp + 0x10]
je 0x4892a6
cmp dword [ebx + 0x2c], 0
jne 0x4891a7
cmp dword [ebp + 0x10], 0
je 0x4892b6
cmp dword [ebx + 0x2c], 0
jne 0x4891a7
test eax, eax
je 0x4892d0
cmp dword [esi + 0x20], 0
jne 0x4891a7
test eax, eax
je 0x4892d0
test edi, edi
jne 0x4891a7
test ecx, 0x3000
jne 0x4891a7
test edx, 0x2000
je 0x4892ee
cmp dword [ebx + 0x30], 0
jne 0x4891a7
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
test byte [edx + ecx + 0x2c], 0x20
lea eax, [edx + ecx + 0x2c]
mov dword [esp + 0x38], eax
je 0x489332
mov eax, 1
cmp dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
jg 0x4891a7
cmp dword [ebp + 0x10], 0
jne 0x4891a7
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], 0
jne 0x4891a7
cmp dword [ebx + 0x30], 0
je 0x4893b5
cmp dword [ebx + 0x2c], 0
jne 0x4891a7
cmp dword [ebp + 0x10], 0
jne 0x4891a7
test edi, edi
jne 0x4891a7
cmp dword [ecx], 1
jne 0x4891a7
mov eax, ebx
mov dl, 9
test byte [eax + 8], dl
jne 0x4891a7
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x48937b
cmp byte [eax + 4], 0x74
jne 0x4891a7
mov eax, dword [eax + 0x1c]
cmp dword [eax], 1
jl 0x4891a7
mov eax, ecx
test eax, eax
jne 0x489361
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4893b5
cmp dword [ecx], eax
jle 0x4893b5
add ecx, 0x1c
jmp 0x4893a0
cmp word [ecx], 0
je 0x4891a7
mov edx, dword [esi + 0x2c]
inc eax
add ecx, 0x18
cmp eax, dword [edx]
jl 0x4893a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [eax + ecx + 0x10]
push 0
lea ebx, [eax + ecx + 0x10]
push 0
push 0
push 0x15
mov eax, edi
mov dword [esp + 0x44], ebx
mov dword [edi + 0x1b8], edx
call fcn.0046e3e0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1b8], eax
mov eax, dword [ecx + 0x30]
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x489493
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x38]
mov dword [esp + 0x30], eax
xor eax, eax
push eax
push esi
push ecx
mov dword [esp + 0x2c], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call fcn.00465a10
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esi + 0x3c], edx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x1c], ecx
mov byte [esi + 4], 0x74
test eax, eax
jne 0x48945a
mov edx, dword [esp + 0x30]
mov dword [esi + 0x30], edx
jmp 0x48946e
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x30], ecx
test ecx, ecx
je 0x489468
mov dword [ecx + 0x34], eax
mov dword [eax + 0x34], esi
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x45], 0
jne 0x489796
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x489401
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
mov edi, dword [edx]
lea eax, [eax + ecx + 0xc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x40], edi
mov dword [esp + 0x10], edi
call fcn.00433e80
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
call fcn.00433e80
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx + eax + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [eax]
call fcn.00433e80
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [ecx], 0
mov ecx, dword [esp + 0x1c]
mov dword [edx], 0
mov edx, dword [esp + 0x14]
lea ecx, [ecx + edx + 0x18]
mov dword [eax], 0
mov eax, dword [ecx]
mov dword [ebx], 0
test eax, eax
je 0x489551
mov edx, dword [eax + 0x20]
cmp edx, 1
jne 0x489547
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x78]
test edx, edx
jne 0x48952c
mov edx, ebx
mov ebx, dword [edx + 0x1c8]
mov dword [eax + 0x4c], ebx
mov dword [edx + 0x1c8], eax
mov dword [ecx], 0
mov dword [esp + 0x30], esi
jmp 0x489568
dec edx
mov dword [eax + 0x20], edx
mov dword [ecx], 0
mov dword [esp + 0x30], esi
jmp 0x489568
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [eax]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x489595
mov ecx, dword [esp + 0x38]
mov dl, byte [ecx]
mov byte [esp + 0xf], dl
jmp 0x4895b2
push 0
push 0
xor eax, eax
call fcn.00473690
add esp, 8
mov dword [esi + 0x1c], eax
mov dword [esp + 0x14], eax
test eax, eax
je 0x489789
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x4895e0
mov edx, dword [ebp + 0xc]
inc edx
push edx
dec ecx
push ecx
push ebx
call fcn.00473580
add esp, 0xc
mov dword [esi + 0x1c], eax
cmp byte [ebx + 0x45], 0
mov dword [esp + 0x14], eax
jne 0x489789
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x48964b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x34]
lea edx, [ecx + eax + 8]
mov eax, dword [esp + 0x24]
add ebx, 8
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + 0x38]
mov esi, dword [esp + 0x18]
call fcn.00473430
mov edi, dword [esp + 0x20]
push 0x50
mov ecx, 0x14
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x30]
push 0
push ebx
mov dword [esp + 0x34], edx
call fcn.00591690
add dword [esp + 0x2c], 0x50
add esp, 0xc
add ebx, 0x50
sub dword [esp + 0x24], 1
jne 0x489603
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0xf]
mov byte [ecx + eax + 0x2c], dl
mov eax, dword [edi + 0x2c]
xor ecx, ecx
cmp eax, ecx
je 0x489685
cmp dword [eax], ecx
jle 0x48967d
lea edx, [eax + 0x1c]
jmp 0x489670
xor ebx, ebx
mov word [edx], bx
inc ecx
add edx, 0x18
cmp ecx, dword [eax]
jl 0x489670
xor ecx, ecx
mov dword [esi + 0x2c], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [edi + 0x20]
mov ebx, dword [esp + 0x18]
cmp eax, ecx
je 0x4896a4
push 0
push 0
push eax
push ebx
call fcn.00465360
add esp, 0x10
mov dword [esp + 0x20], eax
jmp 0x4896a8
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x2c], 0
jle 0x4896c1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004845a0
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x489705
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x28], edx
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov edx, ebx
call fcn.004656a0
push eax
mov eax, dword [esi + 0x28]
mov ecx, ebx
call fcn.00464ed0
add esp, 4
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x24]
push 0
push ecx
push ebx
call fcn.004656d0
add esp, 0xc
mov dword [esi + 0x24], eax
jmp 0x48971a
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x20]
push edx
mov ecx, ebx
call fcn.00464ed0
add esp, 4
mov dword [esi + 0x20], eax
cmp byte [ebx + 0x45], 0
jne 0x489755
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x3c]
push 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi]
lea edx, [esp + 0x48]
push esi
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
call fcn.00489010
add esp, 0xc
mov eax, dword [edi + 8]
and eax, 1
or dword [esi + 8], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x48976f
mov dword [esi + 0x38], eax
mov dword [edi + 0x38], 0
mov esi, dword [esi + 0x30]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x30], esi
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x489560
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
push ebx
call fcn.004842a0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret