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

Disassembly:
sub esp, 0x580
push ebx
mov ebx, dword [esp + 0x594]
lea eax, [esp + 0x110]
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
xor edx, edx
push eax
xor ecx, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
call fcn.10064663
mov esi, eax
lea edi, [esp + 0x18]
lea ecx, [esp + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10062bee
mov eax, dword [esp + 0x30]
lea ecx, [ebx + 0xa4]
mov dword [eax], ebp
mov eax, dword [esp + 0x34]
mov dword [eax], ebp
cmp dword [ecx], 3
je 0x10061a4f
cmp dword [ebx + 0x6c], ebp
je 0x10061a68
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x100621c2
cmp eax, 0x100
ja 0x100621c2
cmp dword [ebx + 0x38], 2
jbe 0x10061a7d
mov dword [ebx + 0x17c], 0x3d
jmp 0x100621cc
cmp dword [ebx + 0xa0], 1
jbe 0x10061a95
mov dword [ebx + 0x17c], 0x47
jmp 0x100621cc
mov edx, dword [ebx + 0xa8]
mov ecx, dword [ecx]
call fcn.1005cd19
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov edx, dword [ebx + 0x7c]
lea esi, [ebx + 0x78]
mov ecx, dword [esi]
call fcn.1005cd19
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
lea edx, [ebx + 0x98]
lea ecx, [esp + 0x38]
call fcn.10062b69
cmp dword [ebx + 0x5c], ebp
je 0x10061c5f
lea ecx, [esp + 0x168]
call fcn.10060bb1
cmp dword [ebx + 0x154], ebp
je 0x10061b27
mov edx, dword [ebx + 0x160]
mov ecx, dword [ebx + 0x15c]
call fcn.10060249
neg eax
sbb eax, eax
not eax
and dword [esp + 0x588], eax
call fcn.1006026d
neg eax
sbb eax, eax
not eax
and dword [esp + 0x58c], eax
mov edx, dword [esp + 0x594]
lea ecx, [esp + 0x168]
push esi
push dword [esp + 0x5a0]
push dword [esp + 0x5a0]
call fcn.10060c11
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [ebx + 0xc4], ebp
je 0x10061bf3
lea eax, [esp + 0x148]
mov dword [esp + 0x10], ebp
push eax
push 0x10
pop edx
push 2
pop ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.10060b17
push 8
pop ecx
mov esi, eax
lea edi, [esp + 0x128]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0xa4]
push edi
lea eax, [esp + 0x12c]
push eax
push dword [ebx + 0xd0]
lea eax, [esp + 0x38]
push dword [ebx + 0xcc]
lea edx, [esp + 0x38]
push dword [ebx + 0xc8]
lea ecx, [esp + 0x24]
push eax
call fcn.10061457
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x168]
push 0xffff
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10060b36
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
lea esi, [ebx + 0x78]
jmp 0x10061bf9
lea edi, [ebx + 0xa4]
lea eax, [esp + 0x168]
mov edx, esi
push eax
lea ecx, [esp + 0x48]
call fcn.1005c85c
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [ebx + 0xc4], ebp
je 0x10061c5f
push edi
lea eax, [esp + 0x48]
push eax
push dword [ebx + 0xd0]
lea eax, [esp + 0x7c]
push dword [ebx + 0xcc]
lea edx, [esp + 0x7c]
push dword [ebx + 0xc8]
lea ecx, [esp + 0x7c]
push eax
call fcn.10061457
test eax, eax
je 0x10061c5f
mov dword [ebx + 0x17c], 0x68
jmp 0x100621cc
mov edi, dword [esp + 0x44]
cmp dword [ebx + 0x154], ebp
je 0x10061ccc
mov edx, dword [ebx + 0x160]
mov ecx, dword [ebx + 0x15c]
call fcn.10060249
mov dword [esp + 0x10], eax
call fcn.1006026d
mov edx, eax
test edi, edi
je 0x10061c94
cmp edi, 4
je 0x10061c94
mov ecx, ebp
jmp 0x10061c97
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10061cb2
test edx, edx
jne 0x10061cb2
mov dword [ebx + 0x17c], 0x64
jmp 0x100621cc
cmp eax, ecx
je 0x10061ccc
xor eax, eax
cmp dword [ebx + 0x5c], ebp
setne al
add eax, 0x65
mov dword [ebx + 0x17c], eax
jmp 0x100621cc
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.10060a8f
test eax, eax
jne 0x10061d9d
lea ecx, [esp + 0x44]
call fcn.10062749
mov esi, eax
imul esi, dword [esp + 0x598]
imul esi, dword [esp + 0x59c]
add esi, 7
shr esi, 3
mov ecx, esi
call fcn.10063078
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10061d1d
test esi, esi
je 0x10061d1d
mov dword [ebx + 0x17c], 0x53
cmp dword [ebx + 0x17c], ebp
jne 0x10061d89
push dword [esp + 0x59c]
mov edx, dword [esp + 0x598]
lea ecx, [ebx + 0x78]
push dword [esp + 0x59c]
push ecx
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
call fcn.10061212
mov dword [ebx + 0x17c], eax
mov eax, dword [esp + 0x10]
cmp dword [ebx + 0x17c], ebp
jne 0x10061d89
lea esi, [ebx + 0x38]
push esi
lea ecx, [esp + 0x3c]
push ecx
push dword [esp + 0x5a4]
lea edx, [esp + 0x20]
push dword [esp + 0x5a4]
lea ecx, [esp + 0x34]
push eax
call fcn.1006370c
mov dword [ebx + 0x17c], eax
jmp 0x10061d8c
lea esi, [ebx + 0x38]
mov ecx, dword [esp + 0x10]
call fcn.10062740
cmp dword [ebx + 0x17c], ebp
jmp 0x10061dd0
lea esi, [ebx + 0x38]
push esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x5a4]
lea edx, [esp + 0x20]
push dword [esp + 0x5a4]
lea ecx, [esp + 0x34]
push dword [esp + 0x5a4]
call fcn.1006370c
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
lea ecx, [esp + 0x18]
call fcn.10064fd4
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
push dword [esp + 0x40]
mov edx, dword [esp + 0x59c]
lea ecx, [esp + 0x1c]
push dword [esp + 0x4c]
push edi
push dword [esp + 0x5a8]
call fcn.1005bf03
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov edx, dword [esp + 0x104]
test edx, edx
je 0x10061e44
push dword [esp + 0x110]
lea ecx, [esp + 0x1c]
call fcn.1005c7b7
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0xf4], ebp
je 0x10061e69
push esi
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.1005c160
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0xec], ebp
je 0x10061e8d
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.1005c3b3
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0xc0], ebp
je 0x10061eb1
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.1005c125
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0xc8], ebp
je 0x10061ed5
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.1005c088
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp edi, 3
jne 0x10061ef5
lea edx, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.1005bf61
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [ebx + 0x6c], ebp
je 0x10061f1f
cmp edi, 2
je 0x10061f04
cmp edi, 6
jne 0x10061f1f
lea edx, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.1005bf61
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
lea edx, [esp + 0x44]
lea ecx, [esp + 0x18]
call fcn.1005c4a3
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0x64], ebp
je 0x10061f5b
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.1005bfbe
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0xb0], ebp
je 0x10061f7f
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.1005c364
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov edx, dword [esp + 0x108]
test edx, edx
je 0x10061fa8
push dword [esp + 0x114]
lea ecx, [esp + 0x1c]
call fcn.1005c7b7
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push esi
push dword [esp + 0x18]
call fcn.1005bea7
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0x94], ebp
je 0x10061fef
lea edx, [esp + 0x98]
lea ecx, [esp + 0x18]
call fcn.1005c44f
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov edi, dword [esp + 0x74]
mov dword [esp + 0x10], ebp
test edi, edi
je 0x10062080
mov eax, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
sub eax, esi
mov dword [esp + 0x14], eax
mov ecx, dword [esi + eax]
call fcn.1006336c
cmp eax, 0x4f
ja 0x100621b6
mov ecx, dword [esp + 0x14]
mov ecx, dword [esi + ecx]
call fcn.1006336c
cmp eax, 1
jb 0x100621aa
lea ecx, [esp + 0x18]
cmp dword [ebx + 0x74], ebp
je 0x10062050
lea eax, [ebx + 0x38]
push eax
mov eax, dword [esp + 0x18]
push dword [esi]
mov edx, dword [esi + eax]
call fcn.1005c596
jmp 0x1006205e
mov eax, dword [esp + 0x14]
push dword [esi]
mov edx, dword [esi + eax]
call fcn.1005c3d3
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
mov eax, dword [esp + 0x10]
add esi, 4
inc eax
mov dword [esp + 0x10], eax
cmp eax, edi
mov eax, dword [esp + 0x14]
jne 0x1006200d
cmp dword [ebx + 0x70], ebp
je 0x100620e8
mov ecx, ebp
test edi, edi
je 0x100620c6
mov eax, dword [esp + 0x78]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x4c
jne 0x100620c1
cmp byte [eax + 1], 0x6f
jne 0x100620c1
cmp byte [eax + 2], 0x64
jne 0x100620c1
cmp byte [eax + 3], 0x65
jne 0x100620c1
cmp byte [eax + 4], 0x50
jne 0x100620c1
cmp byte [eax + 5], 0x4e
jne 0x100620c1
cmp byte [eax + 6], 0x47
jne 0x100620c1
cmp byte [eax + 7], 0
je 0x100620e8
inc ecx
cmp ecx, edi
jne 0x1006208b
push dword [0x100cf9c8]
mov edx, str.LodePNG
lea ecx, [esp + 0x1c]
call fcn.1005c3d3
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
cmp dword [esp + 0x80], ebp
je 0x10062177
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
mov edi, dword [esp + 0x84]
sub eax, esi
mov dword [esp + 0x10], eax
sub edi, esi
mov eax, dword [esp + 0x88]
sub eax, esi
mov dword [esp + 0x28], eax
mov ecx, dword [esi + edi]
call fcn.1006336c
cmp eax, 0x4f
ja 0x100621b6
mov ecx, dword [esi + edi]
call fcn.1006336c
cmp eax, 1
jb 0x100621aa
mov edx, dword [ebx + 0x74]
lea eax, [ebx + 0x38]
push eax
push dword [esi]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push dword [eax + esi]
mov eax, dword [esp + 0x34]
push dword [esi + eax]
push dword [esi + edi]
call fcn.1005c220
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
inc ebp
add esi, 4
cmp ebp, dword [esp + 0x80]
jne 0x1006211f
mov edx, dword [esp + 0x10c]
test edx, edx
je 0x1006219c
push dword [esp + 0x118]
lea ecx, [esp + 0x1c]
call fcn.1005c7b7
mov dword [ebx + 0x17c], eax
test eax, eax
jne 0x100621cc
lea ecx, [esp + 0x18]
call fcn.1005bef4
jmp 0x10061cc1
mov dword [ebx + 0x17c], 0x43
jmp 0x100621cc
mov dword [ebx + 0x17c], 0x42
jmp 0x100621cc
mov dword [ebx + 0x17c], 0x44
lea ecx, [esp + 0x38]
call fcn.10062b41
mov ecx, dword [esp + 0x24]
call fcn.10062740
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
pop ebp
mov dword [ecx], eax
mov eax, dword [ebx + 0x17c]
pop ebx
add esp, 0x580
ret 0x10