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

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
test esi, esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
je 0x4027be
mov edi, dword [esp + 0x164]
mov ebp, dword [esp + 0x15c]
mov ebx, dword [esp + 0x168]
mov edx, dword [esp + 0x160]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
sub edi, ebp
sub ebx, edx
push eax
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x402412
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40242f
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
call fcn.00402350
test eax, eax
je 0x402777
mov esi, dword [eax + 8]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
mov ebp, dword [esp + 0x14]
sub edx, esi
sub edi, esi
mov dword [esp + 0x2c], edx
sub edx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub edi, ecx
sub ebp, eax
sub ebx, eax
mov dword [esp + 0x30], ebp
sub ebp, edx
sub ebx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
lea ebx, [esp + 0xcc]
mov ebp, 9
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [ebx - 4], 0
mov dword [ebx - 8], 0
add ebx, 0x10
dec ebp
jne 0x402483
mov ebx, dword [esp + 0x15c]
mov ebp, dword [esp + 0x160]
mov dword [esp + 0xc8], ebp
mov dword [esp + 0xc4], ebx
lea ebp, [ecx + ebx]
sub ebx, esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0xd4], ebp
mov ebp, dword [esp + 0x160]
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], ebp
mov ebp, dword [esp + 0x1c]
add ebx, ebp
mov ebp, dword [esp + 0x15c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xe4], ebx
mov ebx, dword [esp + 0x160]
mov dword [esp + 0xf4], ebp
mov dword [esp + 0xe8], ebx
mov dword [esp + 0x10c], edi
lea ebp, [ebx + edx]
mov dword [esp + 0x13c], edi
mov dword [esp + 0xf8], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x100], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x104], ebp
lea ebp, [ebx + edx]
mov dword [esp + 0x108], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x110], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x114], ebp
lea ebp, [ebx + edx]
mov dword [esp + 0x118], ebp
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x120], ebp
mov ebp, dword [esp + 0x15c]
sub ebx, eax
mov dword [esp + 0x124], ebp
mov ebp, dword [esp + 0x24]
add ebx, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x128], ebx
mov dword [esp + 0x134], ebp
mov dword [esp + 0x138], ebx
mov dword [esp + 0x144], edi
mov dword [esp + 0x148], ebx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xf0], edx
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x11c], esi
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x14c], esi
mov dword [esp + 0x150], eax
lea edi, [esp + 0x3c]
mov ebp, 9
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi - 4], ebx
mov dword [edi - 8], ebx
add edi, 0x10
dec ebp
jne 0x402615
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x80], ebp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x158]
mov dword [esp + 0xbc], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x84], edi
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], edx
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], edx
mov dword [esp + 0xc0], eax
xor esi, esi
mov eax, dword [esp + esi + 0x40]
mov ecx, dword [esp + esi + 0x3c]
mov edx, dword [esp + esi + 0x38]
mov edi, dword [esp + esi + 0x34]
push ebx
push ebx
push ebx
push 2
push eax
mov eax, dword [esp + esi + 0xe0]
push ecx
mov ecx, dword [esp + esi + 0xe0]
push edx
mov edx, dword [esp + esi + 0xec]
push edi
push edx
mov edx, dword [esp + esi + 0xe8]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
mov edx, dword [ebp]
mov ecx, dword [eax + 4]
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
cmp eax, ebx
je 0x40275f
mov dword [ebp + 4], eax
add esi, 0x10
cmp esi, 0x90
jl 0x40270e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x14
mov eax, dword [esp + 0x10]
cmp edi, eax
jle 0x402781
mov edi, eax
mov eax, dword [esp + 0x14]
cmp ebx, eax
jle 0x40278b
mov ebx, eax
mov ecx, dword [esi + 4]
push 0
mov eax, dword [esp + 0x164]
mov esi, dword [esp + 0x15c]
push 0
push 0
push 2
mov edx, dword [esi]
push ebx
push edi
push 0
push 0
push ebx
push edi
push eax
push ebp
push ecx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x4027be
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0x14