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

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push edi
mov edi, dword [esp + 0xd4]
mov ebx, dword [edi + 0x50]
mov ecx, dword [ebx + 0x48]
mov eax, dword [edi + 0x40]
xor ebp, ebp
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.1005a140
add esp, 4
cmp eax, ebp
jne 0x1005ceaa
cmp byte [edi + 4], 0
je 0x1005c5a9
cmp byte [edi + 3], 0
je 0x1005c5a9
cmp byte [edi + 6], 0
je 0x1005c5a9
cmp byte [edi + 2], 1
jne 0x1005c5a9
mov dx, word [edi + 0x1c]
cmp dx, word [edi + 0x14]
jne 0x1005c5a9
mov eax, dword [edi + 0x50]
cmp dword [eax + 0x4c], 1
je 0x1005c5a9
movzx ecx, byte [ebx + 8]
mov edx, dword [ebx + 0x44]
lea ecx, [ecx + edx + 8]
call fcn.100457e0
cmp eax, dword [edi + 0x4c]
jne 0x1005c5a9
push edi
mov ecx, ebx
call fcn.1005c360
add esp, 4
pop edi
pop ebp
pop ebx
add esp, 0xc4
ret
mov eax, dword [edi + 0x48]
push eax
call fcn.1005a140
add esp, 4
cmp eax, ebp
jne 0x1005ceaa
cmp byte [ebx + 1], 0
push esi
je 0x1005c605
movzx esi, word [ebx + 0x14]
mov ecx, dword [edi + 0x4c]
xor edi, edi
cmp esi, ebp
mov dword [esp + 0x48], ecx
jle 0x1005c609
movzx ebp, word [ebx + 0xe]
mov eax, dword [ebx + 0x44]
add ebp, eax
mov edi, edi
movzx edx, byte [ebp]
movzx ecx, byte [ebp + 1]
shl edx, 8
or ecx, edx
add ecx, dword [ebx + 0x44]
call fcn.100457e0
cmp eax, dword [esp + 0x48]
je 0x1005c609
inc edi
add ebp, 2
cmp edi, esi
jl 0x1005c5e0
jmp 0x1005c609
movzx edi, word [edi + 0x10]
mov eax, dword [ebx + 0x48]
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.10046da0
movzx eax, word [ebx + 0x14]
lea ebp, [edi - 1]
lea ecx, [ebp + 3]
cmp ecx, eax
mov dword [esp + 0x28], ebp
jle 0x1005c634
lea ebp, [eax - 2]
mov dword [esp + 0x28], ebp
cmp ebp, esi
jge 0x1005c63e
xor ebp, ebp
mov dword [esp + 0x28], ebp
lea edx, [ebp + ebp]
mov dword [esp + 0x30], edx
xor esi, esi
mov edi, ebx
jmp 0x1005c654
mov edi, dword [esp + 0x1c]
movzx eax, word [edi + 0x14]
cmp ebp, eax
jge 0x1005c682
movzx ecx, word [edi + 0xe]
add ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x44]
movzx edx, byte [ecx + eax + 1]
add ecx, eax
movzx ecx, byte [ecx]
shl ecx, 8
or edx, ecx
lea ecx, [edx + eax]
mov dword [esp + esi + 0x84], ecx
jmp 0x1005c68f
jne 0x1005c6f6
movzx edx, byte [edi + 8]
mov eax, dword [edi + 0x44]
lea ecx, [edx + eax + 8]
call fcn.100457e0
mov dword [esp + esi + 0xa8], eax
mov ecx, dword [esp + esi + 0xa8]
lea ebx, [esp + esi + 0x78]
push edi
mov edi, dword [esp + 0x30]
mov eax, ebx
call fcn.1005a820
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005ce58
mov eax, dword [ebx]
inc dword [esp + 0x24]
add dword [esp + 0x30], 2
mov word [eax + 0x10], bp
movzx edx, byte [eax + 2]
add edx, dword [esp + 0x18]
movzx ecx, word [eax + 0x14]
mov dword [esp + esi + 0x9c], edi
add esi, 4
lea eax, [edx + ecx + 1]
inc ebp
cmp esi, 0xc
mov dword [esp + 0x18], eax
jl 0x1005c650
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
movzx ecx, byte [edi + 0x16]
movzx edx, word [edi + 0x1c]
add esi, 3
and esi, 0xfffffffc
neg ecx
sbb ecx, ecx
and ecx, esi
lea eax, [ecx + edx*8 + 0x108]
lea ecx, [esi + esi*2]
lea edx, [eax + ecx*2]
push edx
call fcn.1004bd20
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1005c738
lea edi, [eax + 7]
jmp 0x1005ce58
movzx ecx, word [edi + 0x1c]
lea ebx, [eax + esi*4]
lea eax, [ebx + esi*2]
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov eax, 1
nop
mov edx, dword [esp + eax*4 + 0x4c]
lea edx, [edx + ecx + 0x58]
mov dword [esp + eax*4 + 0x50], edx
inc eax
cmp eax, 3
jl 0x1005c750
cmp byte [edi + 0x16], 0
mov eax, dword [esp + 0x58]
lea eax, [ecx + eax + 0x58]
mov dword [esp + 0x4c], eax
je 0x1005c77d
lea eax, [eax + ecx*4]
add eax, ecx
mov dword [esp + 0x40], eax
xor ebp, ebp
cmp dword [esp + 0x24], ebp
jle 0x1005c7c2
mov eax, dword [esp + ebp*4 + 0x50]
mov edx, dword [esp + ebp*4 + 0x78]
mov edi, eax
mov esi, edx
mov ecx, 0x15
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x54]
mov dword [eax + 0x44], ecx
mov edx, dword [edx + 0x44]
mov dword [esp + ebp*4 + 0x9c], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + 0x1c]
push eax
push edx
push ecx
call fcn.1007f6e0
inc ebp
add esp, 0xc
cmp ebp, dword [esp + 0x24]
jl 0x1005c785
mov edx, dword [esp + 0xd8]
mov cl, byte [edx + 4]
movzx eax, cl
add eax, eax
xor ebp, ebp
add eax, eax
cmp byte [edx + 6], 0
mov dword [esp + 0x44], ebp
mov dword [esp + 0x30], eax
je 0x1005c7ef
mov dword [esp + 0x38], 1
test cl, cl
jne 0x1005c7f3
mov dword [esp + 0x38], ebp
xor eax, eax
cmp dword [esp + 0x24], ebp
mov dword [esp + 0x10], eax
jle 0x1005c995
jmp 0x1005c810
mov edi, dword [esp + eax*4 + 0x9c]
movzx esi, word [edi + 0x14]
movzx ecx, byte [edi + 2]
add esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
test esi, esi
jle 0x1005c8a1
mov eax, dword [esp + 0x18]
call fcn.10047560
mov edx, dword [esp + 0x34]
mov ecx, edi
mov dword [edx + ebp*4], eax
call fcn.10047710
mov word [ebx + ebp*2], ax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x16], 0
je 0x1005c88f
mov cl, byte [esp + 0x10]
mov edx, dword [esp + 0x40]
mov byte [edx + ebp], cl
movzx ecx, byte [edi + 2]
xor eax, eax
test ecx, ecx
jle 0x1005c88f
mov edx, dword [esp + 0x34]
mov esi, dword [edx + ebp*4]
lea edx, [edi + 0x18]
cmp dword [edx], esi
je 0x1005c883
inc eax
add edx, 8
cmp eax, ecx
jl 0x1005c875
jmp 0x1005c88b
mov eax, dword [esp + 0x40]
mov byte [eax + ebp], 0xff
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
inc ebp
cmp eax, esi
mov dword [esp + 0x18], eax
jl 0x1005c831
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
dec ecx
cmp eax, ecx
jge 0x1005c982
mov eax, dword [esp + eax*4 + 0x84]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
call fcn.10047710
cmp dword [esp + 0x38], 0
movzx eax, ax
je 0x1005c8e5
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
movzx ecx, ax
push edx
call fcn.10048240
add esp, 4
jmp 0x1005c97e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
movzx esi, ax
mov word [ebx + ebp*2], ax
mov eax, dword [esp + 0x44]
add edx, ecx
push esi
push eax
add ecx, esi
push edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x48], ecx
call fcn.1007f6e0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov dword [eax + ebp*4], edx
cmp byte [ecx + 0x16], 0
je 0x1005c932
mov edx, dword [esp + 0x40]
mov byte [edx + ebp], 0xff
mov eax, dword [esp + 0x28]
mov ecx, esi
mov esi, dword [esp + 0x1c]
push eax
call fcn.10048240
mov cx, word [esp + 0x34]
sub word [ebx + ebp*2], cx
movzx eax, word [ebx + ebp*2]
add esp, 4
cmp byte [edi + 4], 0
jne 0x1005c96e
movzx edx, byte [edi + 8]
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + ebp*4]
mov edx, dword [edx + eax + 8]
mov dword [ecx], edx
jmp 0x1005c97d
cmp ax, 4
jae 0x1005c97d
mov eax, 4
mov word [ebx + ebp*2], ax
inc ebp
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jl 0x1005c810
mov dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x2c]
movzx edx, word [ecx + 0x1e]
mov eax, dword [esp + 0x30]
lea ecx, [edx + eax - 0xc]
mov dword [esp + 0x14], ecx
xor edx, edx
xor ecx, ecx
xor eax, eax
test ebp, ebp
jle 0x1005c9e8
mov edi, dword [esp + 0x38]
jmp 0x1005c9c0
movzx esi, word [ebx + edx*2]
lea eax, [eax + esi + 2]
cmp eax, dword [esp + 0x14]
jle 0x1005c9e3
sub eax, esi
mov dword [esp + ecx*4 + 0x64], eax
mov dword [esp + ecx*4 + 0x84], edx
test edi, edi
je 0x1005c9e0
dec edx
xor eax, eax
inc ecx
inc edx
cmp edx, ebp
jl 0x1005c9c0
inc ecx
mov dword [esp + ecx*4 + 0x60], eax
mov dword [esp + ecx*4 + 0x80], ebp
lea edi, [ecx - 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
test edi, edi
jle 0x1005ca79
jmp 0x1005ca10
mov edx, dword [esp + edi*4 + 0x64]
mov esi, dword [esp + edi*4 + 0x60]
mov eax, dword [esp + edi*4 + 0x80]
dec eax
mov ecx, eax
sub ecx, dword [esp + 0x38]
inc ecx
test edx, edx
je 0x1005ca46
movzx edi, word [ebx + eax*2]
mov ebp, esi
sub ebp, edi
movzx edi, word [ebx + ecx*2]
lea edi, [edi + edx + 2]
sub ebp, 2
cmp edi, ebp
mov edi, dword [esp + 0x10]
jg 0x1005ca64
movzx ecx, word [ebx + ecx*2]
movzx eax, word [ebx + eax*2]
lea edx, [edx + ecx + 2]
mov ecx, 0xfffffffe
sub ecx, eax
add esi, ecx
dec dword [esp + edi*4 + 0x80]
jmp 0x1005ca18
mov dword [esp + edi*4 + 0x64], edx
mov dword [esp + edi*4 + 0x60], esi
dec edi
mov dword [esp + 0x10], edi
test edi, edi
jg 0x1005ca10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xd8]
mov eax, dword [edx + 0x44]
movzx ebx, byte [eax]
xor ebp, ebp
mov dword [esp + 0x98], ebx
test ecx, ecx
jle 0x1005cb20
cmp ebp, dword [esp + 0x24]
jge 0x1005cad8
mov esi, dword [esp + ebp*4 + 0x78]
mov edx, dword [esi + 0x48]
mov ecx, dword [esp + ebp*4 + 0xa8]
push edx
mov dword [esp + ebp*4 + 0x54], esi
mov dword [esp + 0x18], esi
mov dword [esp + ebp*4 + 0x68], ecx
mov dword [esp + ebp*4 + 0x7c], 0
call fcn.1005a140
inc dword [esp + 0x24]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005ce58
jmp 0x1005cb0c
mov ecx, dword [esp + ebp*4 + 0x60]
lea eax, [esp + ebp*4 + 0x64]
push 0
push ecx
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.1005b6c0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005ce58
mov esi, dword [esp + 0x14]
inc dword [esp + 0x20]
mov dword [esp + ebp*4 + 0x50], esi
push ebx
call fcn.10047d40
inc ebp
add esp, 4
cmp ebp, dword [esp + 0x18]
jl 0x1005ca97
cmp ebp, dword [esp + 0x24]
jge 0x1005cb53
mov esi, dword [esp + 0x24]
lea ebx, [ebx]
mov ebx, dword [esp + ebp*4 + 0x78]
call fcn.1005bb80
mov edi, eax
test edi, edi
jne 0x1005ce58
mov eax, ebx
call fcn.10055170
mov dword [esp + ebp*4 + 0x78], edi
inc ebp
cmp ebp, esi
jl 0x1005cb30
mov eax, dword [esp + 0x18]
dec eax
xor ecx, ecx
test eax, eax
jle 0x1005cbc5
mov edi, edi
mov ebx, dword [esp + ecx*4 + 0x64]
lea ebp, [esp + ecx*4 + 0x64]
lea eax, [ecx + 1]
cmp eax, dword [esp + 0x18]
mov edi, ebx
mov edx, ecx
mov dword [esp + 0x14], eax
jge 0x1005cbba
lea esp, [esp]
mov esi, dword [esp + eax*4 + 0x64]
cmp esi, edi
jae 0x1005cb8c
mov edx, eax
mov edi, esi
inc eax
cmp eax, dword [esp + 0x18]
jl 0x1005cb80
cmp edx, ecx
jle 0x1005cbb6
mov edi, dword [esp + edx*4 + 0x64]
mov esi, dword [esp + ecx*4 + 0x50]
lea eax, [esp + ecx*4 + 0x50]
lea ecx, [esp + edx*4 + 0x64]
lea edx, [esp + edx*4 + 0x50]
mov dword [ebp], edi
mov edi, dword [edx]
mov dword [eax], edi
mov dword [ecx], ebx
mov dword [edx], esi
mov eax, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
dec eax
cmp ecx, eax
jl 0x1005cb60
mov edi, dword [esp + 0x20]
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], esi
test edi, edi
jle 0x1005cdb4
lea esp, [esp]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + esi*4 + 0x84]
mov ebx, dword [esp + esi*4 + 0x50]
lea edx, [ecx + ebp*2]
push edx
lea ecx, [eax + ebp*4]
push ecx
mov edx, edi
sub edx, ebp
push edx
push ebx
call fcn.100482c0
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp byte [eax + 0x16], 0
je 0x1005cc61
cmp ebp, edi
jge 0x1005cc61
xor esi, esi
lea esp, [esp]
mov ecx, dword [esp + 0x40]
mov al, byte [ecx + ebp]
cmp al, 0xff
je 0x1005cc3d
movzx edx, al
mov eax, dword [esp + edx*4 + 0x9c]
mov ecx, dword [eax + 0x4c]
cmp ecx, dword [ebx + 0x4c]
je 0x1005cc50
mov eax, esi
mov ecx, ebx
call fcn.1005a7b0
mov edi, eax
test edi, edi
jne 0x1005ce58
mov edx, dword [esp + 0x10]
inc ebp
inc esi
cmp ebp, dword [esp + edx*4 + 0x84]
jl 0x1005cc20
mov esi, edx
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + esi*4 + 0x84]
dec eax
cmp esi, eax
jge 0x1005cda1
cmp ebp, dword [esp + 0x44]
jge 0x1005cda1
mov ecx, dword [esp + 0x48]
movzx ecx, word [ecx + ebp*2]
mov edx, dword [esp + 0x34]
mov esi, dword [edx + ebp*4]
movzx eax, cx
add eax, dword [esp + 0x30]
cmp byte [ebx + 4], 0
mov dword [esp + 0x14], eax
jne 0x1005ccae
mov edx, dword [ebx + 0x44]
mov ecx, dword [esi]
mov dword [edx + 8], ecx
xor edi, edi
jmp 0x1005cd33
cmp dword [esp + 0x38], 0
je 0x1005cd0c
mov edx, dword [edx + ebp*4 - 4]
dec ebp
push edx
push ebx
lea ebx, [esp + 0xbc]
call fcn.100475b0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0xc8]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push edx
lea esi, [eax + edi]
mov eax, dword [esp + 0xd8]
push eax
push 0
push esi
push ecx
call fcn.1005be00
mov eax, dword [esp + 0x40]
add edi, eax
add esp, 0x2c
mov dword [esp + 0x3c], edi
xor edi, edi
jmp 0x1005cd33
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x4c]
add edi, edx
add edx, eax
sub esi, 4
mov dword [esp + 0x3c], edx
cmp cx, 4
jne 0x1005cd33
mov ecx, dword [esp + 0x1c]
mov eax, esi
call fcn.10047710
movzx eax, ax
mov ecx, dword [esp + 0x28]
push 4
push eax
push esi
mov esi, dword [esp + 0x28]
mov eax, edi
call fcn.1005c190
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1005ce58
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov eax, esi
call fcn.10047560
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + edx*4 + 0x50]
mov eax, dword [eax + 0x4c]
call fcn.10045800
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0x16], 0
je 0x1005cd98
cmp dword [esp + 0x38], 0
jne 0x1005cd98
mov eax, esi
mov ecx, edi
call fcn.1005a7b0
mov edi, eax
test edi, edi
jne 0x1005ce58
mov esi, dword [esp + 0x10]
inc ebp
inc dword [esp + 0x28]
inc esi
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
jl 0x1005cbe0
mov edi, dword [esp + 0x20]
test byte [esp + 0x98], 8
jne 0x1005cdd9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + ecx*4 + 0x98]
mov eax, dword [edx + 0x44]
mov ecx, dword [esp + edi*4 + 0x4c]
mov edx, dword [ecx + 0x44]
mov eax, dword [eax + 8]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + 0x14]
movzx edx, byte [ecx + 2]
add edx, eax
mov eax, dword [esp + 0x28]
cmp eax, edx
jne 0x1005ce05
movzx edx, byte [ecx + 8]
mov eax, dword [ecx + 0x44]
lea ecx, [edx + eax + 8]
mov eax, dword [esp + edi*4 + 0x60]
call fcn.10045800
jmp 0x1005ce1f
mov edi, ecx
call fcn.10047560
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + edx*4 + 0x60]
call fcn.10045800
mov edi, dword [esp + 0x20]
xor ebx, ebx
test edi, edi
jle 0x1005ce3b
mov esi, dword [esp + ebx*4 + 0x50]
call fcn.1005c100
mov edi, eax
test edi, edi
jne 0x1005ce58
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x1005ce25
mov esi, dword [esp + 0x1c]
call fcn.1005c100
mov edi, eax
test edi, edi
jne 0x1005ce58
push eax
mov eax, esi
push eax
call fcn.1005d1f0
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1004bdf0
mov ebx, dword [esp + 0x28]
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x1005ce7e
nop
mov eax, dword [esp + esi*4 + 0x78]
call fcn.10055170
inc esi
cmp esi, ebx
jl 0x1005ce70
mov ebx, dword [esp + 0x20]
xor esi, esi
test ebx, ebx
jle 0x1005ce9e
jmp 0x1005ce90
mov eax, dword [esp + esi*4 + 0x50]
call fcn.10055170
inc esi
cmp esi, ebx
jl 0x1005ce90
mov eax, dword [esp + 0x1c]
call fcn.10055170
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc4
ret