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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
push edi
test eax, eax
je 0x10059493
push eax
call dword [0x10120230]
add esp, 4
mov edi, dword [esi + 0x18]
call fcn.1004fa40
mov eax, dword [esi]
test eax, eax
je 0x100594b2
mov eax, dword [eax + 0xc]
test eax, eax
je 0x100594b2
push eax
call dword [0x10120230]
add esp, 4
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x100594c7
cmp ebx, 5
je 0x100594c7
cmp ebx, 6
jne 0x10059bff
cmp dword [esi], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], 0
je 0x100594ff
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x100594ff
mov ebx, 5
jmp 0x100596c4
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x10059533
push 2
push ecx
call fcn.100522d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100596c4
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
push ecx
push 1
mov dword [esi + 0xc], 1
call fcn.10057a30
add esp, 8
mov edi, dword [esi + 0x18]
cmp byte [edi + 8], 0
jne 0x100596c4
mov esi, dword [edi + 4]
xor ebx, ebx
mov dword [esp + 0x10], ebx
call fcn.1004fa40
mov al, byte [edi + 8]
cmp al, 2
je 0x10059691
cmp al, 1
je 0x10059691
movzx edx, word [esi + 0x16]
test dl, 0x40
je 0x1005957e
mov eax, dword [esi + 0x4c]
cmp dword [eax], ebx
je 0x1005957e
mov dword [esp + 0x10], 0x106
jmp 0x10059691
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x100595c5
cmp dword [eax + 0x4c], edi
je 0x1005959f
test byte [eax + 0x16], 0x20
je 0x1005959f
mov dword [esp + 0x10], 0x106
jmp 0x10059691
mov eax, dword [eax + 0x48]
cmp eax, ebx
je 0x100595c5
mov ecx, 1
jmp 0x100595b0
cmp dword [eax], edi
je 0x100595be
cmp dword [eax + 4], ecx
jne 0x100595be
cmp byte [eax + 8], cl
jne 0x10059571
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x100595b0
mov eax, edx
and eax, 0xfff7
mov dword [esp + 0x10], ebx
mov word [esi + 0x16], ax
cmp dword [esi + 0x2c], ebx
jne 0x100595e0
or eax, 8
mov word [esi + 0x16], ax
cmp dword [esi + 0xc], 0
jne 0x100595f7
mov ebx, esi
call fcn.10051ec0
mov dword [esp + 0x10], eax
test eax, eax
je 0x100595e0
jmp 0x100595fe
cmp dword [esp + 0x10], 0
je 0x1005961e
cmp byte [esi + 0x14], 0
jne 0x1005961e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1005961e
mov ecx, dword [eax + 0x44]
push ecx
call fcn.1004bf40
add esp, 4
mov dword [esi + 0xc], 0
cmp byte [esp + 0x10], 5
jne 0x1005965d
cmp byte [esi + 0x14], 0
jne 0x1005965d
mov ebx, dword [esi + 4]
add ebx, 0x1bc
je 0x1005965d
mov ecx, dword [ebx]
test ecx, ecx
je 0x1005965d
mov eax, dword [ebx + 8]
test eax, eax
jl 0x1005965d
mov edx, dword [ebx + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x10059656
inc dword [ebx + 8]
jmp 0x100595e0
mov dword [ebx + 8], 0xffffffff
cmp dword [esp + 0x10], 0
jne 0x10059691
cmp byte [edi + 8], 0
jne 0x10059683
inc dword [esi + 0x28]
cmp byte [edi + 9], 0
je 0x10059683
mov byte [edi + 0x24], 1
mov eax, dword [esi + 0x48]
lea ecx, [edi + 0x1c]
mov dword [edi + 0x28], eax
mov dword [esi + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [esi + 0x14], 1
jae 0x10059691
mov byte [esi + 0x14], 1
cmp byte [edi + 9], 0
je 0x100596b5
add dword [edi + 0xc], 0xffffffff
jne 0x100596b5
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x100596b1
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
mov dword [esp + 0x38], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], eax
test ebx, ebx
jne 0x100596f8
cmp eax, 5
jne 0x100596f8
cmp edx, edi
je 0x100596f8
lea ebx, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x10059714
cmp dword [esp + 0x2c], eax
jge 0x10059782
mov edi, dword [esi + 0x10]
cmp edi, dword [esp + 0x10]
ja 0x10059782
test ebx, ebx
jne 0x100597c4
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x101202e0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x10059774
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x30]
push edx
push edi
lea ecx, [ebx + 2]
call fcn.1004bbc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10059774
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
push ebx
push eax
push edi
push esi
call fcn.10059240
mov ecx, dword [esp + 0x40]
push ecx
mov ebx, eax
call fcn.1004bf40
add esp, 0x14
mov eax, 1
add dword [esi + 0x10], eax
add dword [esp + 0x2c], eax
jmp 0x10059707
test ebx, ebx
jne 0x100597c4
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, eax
sub edx, ecx
inc edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edx
cmp ecx, eax
ja 0x100597d1
cmp dword [esi + 0x28], ebx
jne 0x10059b00
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [esi + 0x2c], edx
mov dword [eax], esi
mov dword [esi + 0x28], 1
jmp 0x10059b00
cmp ebx, 0x65
jne 0x10059b00
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100597f0
mov eax, dword [esi + 4]
call fcn.10052280
mov ebx, eax
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x100597f0
cmp ebx, 0x65
jne 0x1005986c
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, dword [edi + 4]
inc ebx
mov dword [esp + 0x30], eax
call fcn.1004fa40
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x38]
mov eax, dword [eax + 0x44]
push eax
mov dword [esp + 0x34], edx
call fcn.1004c320
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10059844
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 0x28], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [eax + 0x29], dl
mov byte [eax + 0x2a], cl
mov byte [eax + 0x2b], bl
cmp byte [edi + 9], 0
je 0x10059868
add dword [edi + 0xc], 0xffffffff
jne 0x10059868
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10059864
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x10059b00
mov eax, dword [esi]
test eax, eax
je 0x1005987f
call fcn.100738f0
cmp dword [esp + 0x3c], 5
jne 0x1005989e
mov eax, dword [esi + 4]
push 2
push eax
call fcn.10058e20
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10059b00
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1c], ecx
jge 0x100598d6
mov eax, ecx
cdq
idiv dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x101202e0]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x100598e6
dec edi
jmp 0x100598e6
mov eax, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x20]
mov edi, eax
imul edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x1c], edx
jge 0x10059cf1
mov eax, dword [esp + 0x1c]
cdq
mov ecx, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
push ecx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x44]
cdq
push ecx
push edx
push eax
call fcn.100e93d0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], eax
nop
cmp edi, dword [esp + 0x3c]
ja 0x10059988
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x101202e0]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x10059981
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
push edi
xor ecx, ecx
call fcn.1004bbc0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10059981
mov eax, dword [esp + 0x30]
push eax
call fcn.1004c320
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
mov ebx, eax
call fcn.1004bf40
add esp, 4
inc edi
test ebx, ebx
je 0x10059930
jmp 0x1005999d
test ebx, ebx
jne 0x1005999d
mov eax, dword [esp + 0x28]
push 1
push ebx
call fcn.1004c5a0
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0x20]
mov edi, dword [0x101202e0]
mov ecx, dword [esp + 0x14]
lea eax, [edi + edx]
cdq
cmp edx, ecx
jg 0x100599c1
jl 0x100599bb
cmp eax, dword [esp + 0x10]
jae 0x100599c1
mov dword [esp + 0x4c], edx
jmp 0x100599c9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
lea eax, [edi + ecx]
cdq
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
test ebx, ebx
jne 0x10059b00
jmp 0x100599f0
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x24], edx
jg 0x10059c5a
jl 0x10059a0e
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x20], eax
jae 0x10059c5a
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push edi
mov dword [esp + 0x44], 0
call fcn.100e95c0
inc eax
push eax
mov eax, dword [esp + 0x3c]
xor ecx, ecx
call fcn.1004bbc0
mov esi, dword [esp + 0x38]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10059a6e
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebx, eax
test esi, esi
je 0x10059ae5
test byte [esi + 0x18], 0x40
mov edi, dword [esi + 0x10]
je 0x10059ac3
dec dword [edi + 0x78]
mov ecx, dword [edi + 0x88]
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x88], esi
mov eax, dword [eax]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x14]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100e93d0
push edx
push eax
mov eax, dword [edi + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
jmp 0x10059aca
mov eax, esi
call fcn.10046f00
cmp dword [edi + 0x78], 0
jne 0x10059ae5
mov eax, dword [edi + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x10059ae5
push edi
call fcn.100493d0
add esp, 4
mov ecx, dword [esp + 0x40]
add dword [esp + 0x20], ecx
mov edx, dword [esp + 0x44]
adc dword [esp + 0x24], edx
test ebx, ebx
je 0x100599f0
mov esi, dword [ebp + 8]
cmp dword [esp + 0x38], 0
je 0x10059bef
mov eax, dword [esi + 0x18]
push 0
call fcn.100530b0
mov eax, dword [esi + 0x18]
add esp, 4
cmp byte [eax + 8], 0
mov dword [esp + 0x10], eax
je 0x10059bef
mov edi, eax
call fcn.1004fa40
mov eax, edi
cmp byte [eax + 8], 2
jne 0x10059bc0
mov ecx, edi
mov ecx, dword [ecx + 4]
mov edi, dword [ecx]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x10059e85
cmp byte [edi + 0xf], 2
jne 0x10059e4f
cmp byte [edi + 4], al
je 0x10059e4f
cmp byte [edi + 5], 1
jne 0x10059e4f
mov byte [edi + 0xf], 1
mov edi, dword [ecx + 0x3c]
mov byte [ecx + 0x14], 1
mov dword [esp + 0x3c], edi
test edi, edi
je 0x10059bb9
cmp dword [edi + 8], 0
je 0x10059bac
add edi, 0xc
mov dword [esp + 0x38], 0x7d
mov ecx, dword [edi]
push ecx
call fcn.10046940
add esp, 4
add edi, 4
sub dword [esp + 0x38], 1
jne 0x10059b93
mov edi, dword [esp + 0x3c]
push edi
call fcn.1003fd70
mov ecx, dword [esp + 0x38]
add esp, 4
mov dword [ecx + 0x3c], 0
mov edi, dword [esp + 0x10]
mov eax, edi
call fcn.10053160
cmp byte [edi + 9], 0
je 0x10059bef
add dword [edi + 0xc], 0xffffffff
jne 0x10059bef
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10059beb
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
cmp ebx, 0xc0a
jne 0x10059bfc
mov ebx, 7
mov dword [esi + 0x1c], ebx
mov eax, dword [esi]
test eax, eax
je 0x10059c16
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10059c16
push eax
call dword [0x10120238]
add esp, 4
mov edi, dword [esi + 0x18]
cmp byte [edi + 9], 0
je 0x10059c3d
add dword [edi + 0xc], 0xffffffff
jne 0x10059c3d
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x10059c39
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x10059c51
push eax
call dword [0x10120238]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x10059afd
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x48]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x10059ca3
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
cmp edx, ecx
jl 0x10059ca3
jg 0x10059c92
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x10]
jbe 0x10059ca3
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call edx
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10059afd
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 7], al
jne 0x10059cce
movzx eax, byte [ecx + 0xb]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
mov esi, dword [ebp + 8]
add esp, 8
jmp 0x10059d04
mov ecx, dword [ecx + 0x3c]
cmp dword [ecx], 0
je 0x10059cec
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push 0
push 8
push ecx
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x10059cec
xor eax, eax
mov esi, dword [ebp + 8]
jmp 0x10059d04
mov eax, dword [esp + 0x28]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.1004c5a0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x10059b00
mov edi, dword [esi + 4]
cmp byte [edi + 8], al
je 0x10059ddc
call fcn.1004fa40
cmp byte [edi + 8], 2
jne 0x10059db1
mov eax, dword [edi + 4]
mov ebx, dword [eax]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x10059d40
mov ebx, ecx
jmp 0x10059e16
cmp byte [ebx + 0xf], 2
jne 0x10059de6
cmp byte [ebx + 4], 0
je 0x10059de6
cmp byte [ebx + 5], 1
jne 0x10059de6
mov byte [ebx + 0xf], 1
mov ecx, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x10059daa
cmp dword [ecx + 8], 0
je 0x10059d99
mov ebx, ecx
add ebx, 0xc
mov dword [esp + 0x34], 0x7d
mov eax, dword [ebx]
push eax
call fcn.10046940
add esp, 4
add ebx, 4
sub dword [esp + 0x34], 1
jne 0x10059d84
mov ecx, dword [esp + 0x30]
push ecx
call fcn.1003fd70
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [eax + 0x3c], 0
mov eax, edi
call fcn.10053160
cmp byte [edi + 9], 0
je 0x10059ddc
add dword [edi + 0xc], 0xffffffff
jne 0x10059ddc
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10059dd8
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
mov ebx, 0x65
jmp 0x10059b00
movzx ecx, byte [ebx + 0x12]
push 1
push ecx
mov eax, ebx
call fcn.100491e0
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10059e09
cmp ecx, 0xa
jne 0x10059e10
mov dword [ebx + 0x28], eax
mov byte [ebx + 0xf], 6
mov ebx, eax
mov eax, dword [esp + 0x2c]
test ebx, ebx
je 0x10059d62
cmp byte [edi + 9], 0
je 0x10059b00
add dword [edi + 0xc], 0xffffffff
jne 0x10059b00
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10059e46
push eax
call dword [0x10120238]
add esp, 4
mov byte [edi + 0xa], 0
jmp 0x10059b00
movzx edx, byte [edi + 0x12]
push 1
push edx
mov eax, edi
call fcn.100491e0
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x10059e72
cmp ecx, 0xa
jne 0x10059e79
mov dword [edi + 0x28], eax
mov byte [edi + 0xf], 6
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x10059b73
mov eax, dword [esp + 0x10]
cmp byte [eax + 9], 0
je 0x10059bef
add dword [eax + 0xc], 0xffffffff
jne 0x10059bef
mov ecx, eax
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x10059eb3
push eax
call dword [0x10120238]
add esp, 4
mov eax, dword [esp + 0x10]
mov byte [eax + 0xa], 0
jmp 0x10059bef