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

Disassembly:
push 0xffffffffffffffff
push 0x474358
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x48dd78]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48dd78]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov ebx, dword [esp + 0x7c]
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x90]
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
cmp edi, eax
je 0x42c6ea
cmp dword [esp + 0x78], eax
jle 0x42c6ea
lea ecx, [esp + 0x3c]
call fcn.00435210
mov edx, dword [esp + 0x78]
push edx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], 0
call fcn.004353d0
push 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.00435370
push 8
lea ecx, [esp + 0x5c]
push 0
push ecx
call fcn.0042d3a0
add esp, 0xc
test eax, eax
jne 0x42c420
push eax
push 0x42bef0
push eax
push 0x47b768
call fcn.0042f890
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x42c420
push eax
call fcn.0042e020
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x42c43c
push eax
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0042f8c0
add esp, 0xc
lea ecx, [esp + 0x3c]
mov dword [ebx], 0
mov dword [esp + 0x6c], 0xffffffff
call fcn.00435360
jmp 0x42c6ec
mov ecx, dword [esp + 0x14]
push 0x42c2e0
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.00435500
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.0042da40
mov ecx, dword [esp + 0x28]
push 8
push ecx
call fcn.0042d360
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.0042e3f0
mov eax, dword [esp + 0x3c]
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x54]
push edx
push esi
push ebp
push eax
push ecx
call fcn.00430230
add esp, 0x48
cmp dword [esp + 0x20], 0x10
jne 0x42c4b2
mov edx, dword [esp + 0x14]
push edx
call fcn.00430860
add esp, 4
cmp dword [esp + 0x1c], 3
jne 0x42c4c6
mov eax, dword [esp + 0x14]
push eax
call fcn.004308d0
add esp, 4
cmp dword [esp + 0x20], 8
jge 0x42c4da
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004308d0
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x10
push edx
push eax
call fcn.0042fc10
add esp, 0xc
test eax, eax
je 0x42c4ff
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004308d0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42c50c
cmp eax, 4
jne 0x42c519
mov edx, dword [esp + 0x14]
push edx
call fcn.00430940
add esp, 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0042ff40
add esp, 0xc
test eax, eax
je 0x42c56d
fld1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
sub esp, 8
fstp qword [esp]
push 1
push 2
push eax
push ecx
call fcn.004307e0
mov eax, dword [esp + 0x3c]
movzx edx, byte [eax + 2]
mov ecx, dword [esp + 0x48]
mov byte [ecx], dl
movzx edx, byte [eax + 4]
mov byte [ecx + 1], dl
mov al, byte [eax + 6]
add esp, 0x18
mov byte [ecx + 2], al
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.004300d0
add esp, 0xc
test eax, eax
je 0x42c5a9
fld qword [esp + 0x50]
mov ecx, dword [esp + 0x14]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [0x47b758]
fstp qword [esp]
push ecx
call fcn.00430880
add esp, 0x14
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0042e9d0
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push edx
push esi
push ebp
push eax
push ecx
call fcn.00430230
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
call fcn.0042fc30
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
mov ebx, eax
call fcn.0042ff00
mov ecx, dword [esp + 0x64]
movzx eax, al
mov dword [ecx], eax
mov eax, dword [esp + 0x70]
add esp, 0x3c
test eax, eax
je 0x42c616
push eax
call fcn.0043e5e0
add esp, 4
mov edx, dword [esi]
mov eax, dword [esp + 0x38]
imul edx, ebx
mov dword [eax], edx
mov ecx, dword [esi]
imul ecx, ebx
push ecx
call fcn.0043e516
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x42c647
mov edx, dword [esp + 0x14]
push str.Visual_PNG:_out_of_memory
push edx
call fcn.0042faf0
add esp, 8
mov eax, dword [esp + 0x2c]
mov dword [eax], ebp
mov ecx, dword [esi]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.0043e516
mov edi, eax
add esp, 4
test edi, edi
jne 0x42c674
mov edx, dword [esp + 0x14]
push str.Visual_PNG:_out_of_memory
push edx
call fcn.0042faf0
add esp, 8
xor eax, eax
cmp dword [esi], eax
jle 0x42c68a
mov ecx, ebp
lea esp, [esp]
mov dword [edi + eax*4], ecx
inc eax
add ecx, ebx
cmp eax, dword [esi]
jl 0x42c680
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.0042ef60
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call fcn.0042efd0
push edi
call fcn.0043e5e0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0042e060
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0042f8c0
add esp, 0x28
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x6c], 0xffffffff
call fcn.00435360
mov eax, 1
jmp 0x42c6ee
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0043e9e1
add esp, 0x5c
ret 0x20