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

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4e7744]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov dword [esp + 0x3c], ebp
mov edi, 0x2c
mov dword [esp + 0x34], 0
mov eax, dword [esi + 0x20]
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 0
mov ebx, dword [eax]
mov edx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x488fd4
add ecx, 4
add edx, 4
sub edi, 4
jae 0x488fc1
jmp 0x488fdc
mov eax, dword [ebx + 0x10]
inc eax
mov dword [esp + 0x10], eax
xor edi, edi
cmp word [esi + 0x28], di
jne 0x48908a
cmp dword [ebx + 0x60], edi
jbe 0x48904e
lea eax, [esp + 0x1c]
push eax
push 4
call fcn.00415750
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x489027
mov eax, dword [esi + 4]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
je 0x489027
cmp edi, 5
jne 0x4896a3
jmp 0x48904e
push dword [esp + 0x1c]
push esi
call fcn.0049ac80
add esp, 8
cmp byte [esi + 0x2b], 0
jne 0x489068
mov eax, dword [esi + 4]
push 9
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x489068
mov eax, dword [esi + 4]
push 5
push 1
push 3
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
or eax, 0xffffffff
xor ebx, ebx
mov word [esi + 0x28], ax
inc ebx
lea eax, [esp + 0x40]
push ebx
push 1
push eax
push esi
call fcn.0049af10
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
je 0x489071
test edi, edi
jne 0x4896a3
mov eax, dword [esi + 0x44]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x48917f
mov ecx, dword [esi + 0x70]
mov eax, ebx
mov dword [esp + 0x60], 0x82067f37
mov dword [esp + 0x64], 0x18e22d00
bswap eax
mov dword [esp + 0x68], eax
mov eax, ecx
bswap eax
mov dword [esp + 0x6c], eax
test ecx, ecx
jne 0x4890dd
lea eax, [esi + 0x54]
push eax
push 8
call fcn.00415750
add esp, 8
mov ecx, dword [esi + 0x58]
xor edx, edx
mov eax, dword [esi + 0x54]
xor edi, edi
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x70], eax
mov eax, dword [ecx]
add eax, edx
add edi, eax
mov eax, dword [ecx + 4]
add eax, edi
add ecx, 8
add edx, eax
lea eax, [esp + 0x78]
cmp ecx, eax
jb 0x4890f3
mov eax, edi
mov dword [esi + 0x50], edx
bswap eax
mov dword [esp + 0x78], eax
mov eax, edx
bswap eax
mov dword [esi + 0x4c], edi
lea edx, [esp + 0x60]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 8]
push 0
push 0
mov dword [esi + 0x24], ebx
mov byte [esi + 0x41], 0
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push 0x20
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
cmp byte [esi + 0x30], al
je 0x48917f
mov ecx, dword [esp + 0xb4]
mov edx, dword [esi + 8]
sar ecx, 2
and ecx, 3
je 0x48917d
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 8
test edi, edi
je 0x48917f
jmp 0x4896a3
xor edi, edi
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x44], eax
cdq
mov dword [esp + 0x58], ecx
mov ecx, eax
mov eax, edx
mov dword [esp + 0x48], esi
push eax
push ecx
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
call fcn.004aa8f0
mov ebx, eax
add ebx, 0x20
mov dword [esp + 0x28], ebx
adc edx, 0
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xb0]
test ebp, ebp
je 0x48939a
cmp dword [esp + 0x10], 0
je 0x489293
cmp dword [ebp + 0x10], 0
jne 0x489206
test eax, eax
jne 0x489293
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 0x18]
push esi
call fcn.00488df0
mov edi, dword [esp + 0x24]
add esp, 0xc
cmp edi, dword [esp + 0x10]
jb 0x48928c
push dword [esp + 0x2c]
lea eax, [edi - 1]
push dword [esp + 0x34]
push 0
push eax
call fcn.004aa8f0
mov ecx, dword [esi + 0x68]
add eax, 0x38
mov dword [esp + 0x1c], eax
adc edx, 0
test ecx, ecx
je 0x489251
cmp edi, ecx
jae 0x489254
mov dword [esi + 0x68], edi
mov eax, dword [esi + 8]
push edx
push dword [esp + 0x20]
push dword [esp + 0xac]
mov ecx, dword [eax]
push dword [ebp + 4]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
mov ecx, 0xffbf
and word [ebp + 0x1c], cx
mov ebp, dword [ebp + 0x10]
jmp 0x4891de
mov eax, dword [esp + 0xb0]
inc dword [esp + 0x20]
test eax, eax
je 0x4892aa
cmp dword [ebp + 0x10], 0
jne 0x4892aa
mov ecx, dword [esp + 0xac]
jmp 0x4892ac
xor ecx, ecx
mov eax, dword [ebp + 4]
lea edi, [esi + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
bswap eax
bswap ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
cmp dword [esi + 0x68], 0
jne 0x489315
mov eax, dword [esi + 0x54]
xor ebx, ebx
mov ecx, dword [esi + 0x58]
push edi
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x64]
push edi
mov dword [esp + 0x74], ecx
cmp byte [esi + 0x41], bl
push 8
sete bl
push eax
push ebx
call fcn.00499910
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.00499910
mov eax, dword [edi]
add esp, 0x28
mov ebx, dword [esp + 0x28]
bswap eax
mov dword [esp + 0x70], eax
mov eax, dword [edi + 4]
bswap eax
jmp 0x489323
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push dword [esp + 0x14]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x64]
push ebx
push 0x18
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0049b240
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
mov eax, dword [esp + 0x14]
mov ecx, ebx
add ecx, 0x18
adc eax, edi
push eax
push ecx
push dword [esp + 0xac]
lea eax, [esp + 0x54]
push dword [esp + 0x24]
push eax
call fcn.0049b240
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
add ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
adc dword [esp + 0x14], eax
or word [ebp + 0x1c], 0x40
mov dword [esp + 0x34], ebp
mov ebp, dword [ebp + 0x10]
mov dword [esp + 0x28], ebx
jmp 0x4891de
test eax, eax
je 0x48960a
cmp dword [esi + 0x68], 0
je 0x4893bf
push dword [esp + 0x20]
push esi
call fcn.0049ace0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4896a3
and dword [esp + 0xb4], 3
je 0x4895b9
cmp byte [esi + 0x31], 0
je 0x4895a1
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x489403
push ecx
call eax
add esp, 4
cmp eax, 0x20
jge 0x4893f5
mov eax, 0x200
jmp 0x489408
cmp eax, 0x10000
jle 0x489408
mov eax, 0x10000
jmp 0x489408
mov eax, 0x1000
mov ebp, dword [esp + 0x14]
cdq
mov ecx, eax
add ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, edx
adc ecx, ebp
sub dword [esp + 0x10], 1
push edx
sbb ecx, 0
push eax
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
call fcn.004aa930
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
sbb eax, edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
cmp ecx, ebx
jne 0x48945d
mov dword [esp + 0x1c], 1
cmp eax, ebp
je 0x489465
mov dword [esp + 0x1c], 0
cmp ebp, eax
jg 0x48959a
jl 0x489477
cmp ebx, ecx
jae 0x48959a
mov edx, dword [esp + 0xac]
bswap edx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x34]
lea edi, [esi + 0x4c]
mov dword [esp + 0x84], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x18]
bswap eax
mov dword [esp + 0x80], eax
cmp dword [esi + 0x68], 0
jne 0x489501
mov eax, dword [esi + 0x54]
xor ebx, ebx
mov ecx, dword [esi + 0x58]
push edi
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x84]
push edi
mov dword [esp + 0x94], ecx
cmp byte [esi + 0x41], bl
push 8
sete bl
push eax
push ebx
call fcn.00499910
push edi
push edi
push dword [esi + 0x24]
push dword [esp + 0x38]
push ebx
call fcn.00499910
mov eax, dword [edi]
add esp, 0x28
mov ebx, dword [esp + 0x28]
bswap eax
mov dword [esp + 0x90], eax
mov eax, dword [edi + 4]
bswap eax
jmp 0x489518
xor eax, eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
push ebp
push ebx
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x88]
push 0x18
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0049b240
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
mov ecx, ebx
mov eax, ebp
add ecx, 0x18
adc eax, edi
push eax
push ecx
push dword [esp + 0xac]
lea eax, [esp + 0x54]
push dword [esp + 0x24]
push eax
call fcn.0049b240
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x4896a3
mov eax, dword [esp + 0x44]
cdq
add ebx, eax
mov dword [esp + 0x28], ebx
adc ebp, edx
inc dword [esp + 0x24]
mov edx, dword [esp + 0x38]
cmp ebp, dword [esp + 0x14]
jl 0x489484
jg 0x48959a
cmp ebx, dword [esp + 0x10]
jb 0x489484
cmp dword [esp + 0x1c], 0
je 0x4895b9
mov ecx, dword [esp + 0x40]
push dword [esp + 0xb4]
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
add esp, 8
mov edi, eax
cmp byte [esi + 0x2f], 0
je 0x48960a
mov ebp, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
test ebp, ebp
jl 0x48960a
jg 0x4895cf
test ebx, ebx
jb 0x48960a
push dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push dword [esp + 0x34]
add eax, dword [esp + 0x28]
push 0
push eax
call fcn.004aa8f0
add eax, 0x20
adc edx, 0
cmp edx, ebp
jl 0x4895fb
jg 0x4895f7
cmp eax, ebx
jbe 0x4895fb
mov ebx, eax
mov ebp, edx
push ebp
push ebx
push esi
call fcn.0049a8e0
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esi + 0x44]
test ebp, ebp
je 0x48963a
test edi, edi
jne 0x4896a3
test byte [ebp + 0x1c], 0x40
je 0x489633
push dword [ebp + 0x18]
inc ebx
push ebx
push esi
call fcn.00499b50
add esp, 0xc
mov edi, eax
mov ebp, dword [ebp + 0x10]
test ebp, ebp
jne 0x489615
test edi, edi
jne 0x4896a3
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x489665
push dword [ebp + 0x18]
inc ebx
dec eax
push ebx
push esi
mov dword [esp + 0x30], eax
call fcn.00499b50
mov edi, eax
add esp, 0xc
test edi, edi
je 0x489642
jmp 0x4896a3
mov ecx, dword [esp + 0xa4]
mov eax, ecx
sar eax, 0x10
and ecx, 0xff00
or eax, ecx
mov dword [esi + 0x44], ebx
cmp dword [esp + 0xb0], 0
mov word [esi + 0x42], ax
je 0x4896a3
mov eax, dword [esp + 0xac]
inc dword [esi + 0x3c]
push esi
mov dword [esi + 0x48], eax
call fcn.0049a5c0
add esp, 4
mov dword [esi + 0xc], ebx
mov ecx, dword [esp + 0x98]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004aa4f4
add esp, 0x8c
ret