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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4421ec
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x45a024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x5c]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x24]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x64]
push eax
push ecx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x415736
mov dword [esi + 8], eax
mov esi, dword [edi + 0x24]
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
push ecx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x60], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x415757
mov dword [esi + 8], eax
mov eax, dword [edi + 0x24]
mov esi, dword [ebp - 0x60]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [ebp - 0x58], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x41577b
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 8], eax
fild dword [edi + 0x40]
mov eax, dword [edi + 0x44]
mov ecx, dword [ebp - 0x58]
sub eax, dword [edi + 0x3c]
mov edx, dword [edi + 0x48]
fstp dword [ebp - 0x50]
fild dword [edi + 0x3c]
sub edx, dword [edi + 0x40]
shr ecx, 2
imul ecx, dword [edi + 0x6c]
fstp dword [ebp - 0x94]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
fild dword [ebp - 0x48]
mov dword [ebp - 0x40], ecx
fstp dword [ebp - 0x8c]
fild dword [ebp - 0x4c]
fstp dword [ebp - 0x88]
fild dword [ebp - 0x40]
test ecx, ecx
jns 0x4157c8
fadd dword [0x4515b0]
mov eax, dword [edi + 0x24]
fstp dword [ebp - 0x48]
cmp eax, ebx
je 0x4157d7
mov eax, dword [eax + 4]
jmp 0x4157d9
xor eax, eax
mov edx, dword [ebp - 0x54]
fild dword [ebp - 0x54]
push ebx
push ebx
push ebx
push 2
test edx, edx
jns 0x4157ee
fadd dword [0x4515b0]
sub esp, 0x20
shr esi, 2
fstp dword [esp + 0x1c]
mov dword [ebp - 0x40], esi
fild dword [ebp - 0x40]
test esi, esi
jns 0x415808
fadd dword [0x4515b0]
fstp dword [esp + 0x18]
fldz
fstp dword [esp + 0x14]
fld dword [ebp - 0x48]
fstp dword [esp + 0x10]
fld dword [ebp - 0x88]
fstp dword [esp + 0xc]
fld dword [ebp - 0x8c]
fstp dword [esp + 8]
fld dword [ebp - 0x50]
fstp dword [esp + 4]
fld dword [ebp - 0x94]
fstp dword [esp]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRect]
cmp eax, ebx
je 0x415852
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x78]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffa
add ecx, 0x12
neg eax
sbb eax, eax
and eax, 0xfffffffd
inc eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x60], ebx
cmp dword [0x465e18], ebx
jle 0x415a7c
mov dword [ebp - 0x58], ebx
cmp dword [edi + 0x70], ebx
jne 0x41588b
mov dword [edi + 0x74], ebx
jmp 0x415890
cmp dword [edi + 0x74], ebx
jne 0x41589a
cmp dword [ebp - 0x58], 0x10
je 0x415a7c
mov eax, dword [ebp - 0x60]
mov ecx, dword [edi + 0xa0]
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x40], eax
cmp dword [ecx + eax + 4], ebx
je 0x4158d7
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x50]
push edx
push eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x4158cd
mov dword [esi + 8], eax
mov ecx, dword [ebp - 0x50]
shr ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4158da
mov dword [ebp - 0x4c], ebx
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x50]
push edx
push eax
mov dword [ebp - 0x50], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x4158f5
mov dword [esi + 8], eax
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x50]
lea edx, [ebp - 0x54]
push edx
push eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x415916
mov dword [esi + 8], eax
mov eax, dword [edi + 0x7c]
mov esi, dword [ebp - 0x58]
fild dword [eax + esi + 4]
mov ecx, dword [eax + esi + 8]
sub ecx, dword [eax + esi]
mov edx, dword [eax + esi + 0xc]
sub edx, dword [eax + esi + 4]
fstp dword [ebp - 0x6c]
fild dword [eax + esi]
add eax, esi
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x88], ecx
fstp dword [ebp - 0x84]
mov dword [ebp - 0x74], edx
fild dword [ebp - 0x88]
fstp dword [ebp - 0x7c]
fild dword [ebp - 0x74]
fstp dword [ebp - 0x78]
cmp eax, ebx
je 0x415961
mov eax, dword [eax + 4]
jmp 0x415963
xor eax, eax
mov edx, dword [ebp - 0x68]
fild dword [ebp - 0x68]
push ebx
push ebx
push ebx
push 2
test edx, edx
jns 0x415978
fadd dword [0x4515b0]
mov ecx, dword [ebp - 0x54]
sub esp, 0x20
shr ecx, 1
fstp dword [esp + 0x1c]
mov dword [ebp - 0x68], ecx
fild dword [ebp - 0x68]
jns 0x415992
fadd dword [0x4515b0]
fstp dword [esp + 0x18]
mov edx, dword [ebp - 0x5c]
fldz
fstp dword [esp + 0x14]
fild dword [ebp - 0x4c]
fstp dword [esp + 0x10]
fld dword [ebp - 0x78]
fstp dword [esp + 0xc]
fld dword [ebp - 0x7c]
fstp dword [esp + 8]
fld dword [ebp - 0x6c]
fstp dword [esp + 4]
fld dword [ebp - 0x84]
fstp dword [esp]
push eax
push edx
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRect]
cmp eax, ebx
je 0x4159d6
mov dword [ebp - 0x98], eax
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax + esi + 8]
sub ecx, dword [eax + esi]
mov edx, dword [eax + esi]
add eax, esi
mov eax, dword [eax + 4]
sub eax, dword [ebp - 0x48]
push 0x190
lea ecx, [ecx + edx + 2]
mov edx, dword [ebp - 0x64]
push 0xb4b4b4
push edx
push eax
mov eax, dword [edi + 0xa0]
add eax, dword [ebp - 0x40]
push ecx
mov eax, dword [eax]
cmp dword [eax + 0x14], 8
jb 0x415a12
mov eax, dword [eax]
sub esp, 0x2c
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x6c], esi
mov word [esi], cx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov ecx, eax
lea edx, [ecx + 2]
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], edx
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x415a41
sub ecx, dword [ebp - 0x40]
sar ecx, 1
push ecx
call fcn.00404070
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x70]
push edi
call fcn.00415f00
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x58], 0x10
inc eax
xor ebx, ebx
mov dword [ebp - 0x60], eax
cmp eax, dword [0x465e18]
jl 0x415881
cmp dword [edi + 0x9c], ebx
je 0x415aa9
mov esi, dword [edi + 0x28]
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x4c]
push eax
push ecx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x415a9f
mov dword [esi + 8], eax
mov edx, dword [ebp - 0x4c]
shr edx, 1
mov dword [ebp - 0x54], edx
jmp 0x415aac
mov dword [ebp - 0x54], ebx
mov eax, dword [edi + 0x90]
sub eax, dword [ebp - 0x48]
mov esi, dword [edi + 0x94]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x28]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x48]
push ecx
push edx
add esi, 2
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
cmp eax, ebx
je 0x415ae5
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x68], edx
mov edx, dword [eax + 4]
push ecx
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
cmp eax, ebx
je 0x415b0c
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 8], eax
fild dword [edi + 0x90]
mov eax, dword [edi + 0x94]
sub eax, dword [edi + 0x8c]
mov edx, dword [edi + 0x98]
sub edx, dword [edi + 0x90]
fstp dword [ebp - 0x74]
fild dword [edi + 0x8c]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x6c], edx
fstp dword [ebp - 0x84]
fild dword [ebp - 0x40]
fstp dword [ebp - 0x7c]
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x78]
cmp eax, ebx
je 0x415b57
mov eax, dword [eax + 4]
jmp 0x415b59
xor eax, eax
mov ecx, dword [ebp - 0x68]
fild dword [ebp - 0x68]
push ebx
push ebx
push ebx
push 2
test ecx, ecx
jns 0x415b6e
fadd dword [0x4515b0]
mov edx, dword [ebp - 0x4c]
sub esp, 0x20
shr edx, 1
fstp dword [esp + 0x1c]
mov dword [ebp - 0x40], edx
fild dword [ebp - 0x40]
jns 0x415b88
fadd dword [0x4515b0]
fstp dword [esp + 0x18]
fldz
fstp dword [esp + 0x14]
fild dword [ebp - 0x54]
fstp dword [esp + 0x10]
fld dword [ebp - 0x78]
fstp dword [esp + 0xc]
fld dword [ebp - 0x7c]
fstp dword [esp + 8]
fld dword [ebp - 0x74]
fstp dword [esp + 4]
fld dword [ebp - 0x84]
fstp dword [esp]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRect]
cmp eax, ebx
je 0x415bcc
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x88]
push 0x190
push 0xb4b4b4
push ecx
push edx
push esi
sub esp, 0x2c
mov esi, esp
xor eax, eax
mov dword [ebp - 0x40], esp
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x40], esi
mov word [esi], ax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
push 0xb
mov eax, 0x451024
mov byte [ebp - 4], 4
call fcn.00404070
mov byte [ebp - 4], bl
mov ebx, dword [ebp - 0x70]
push edi
call fcn.00415f00
xor ebx, ebx
cmp dword [edi + 0x70], ebx
je 0x415d10
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
xor eax, eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 5
push 5
lea esi, [ebp - 0x3c]
mov eax, 0x45103c
cmp dword [edi + 0x74], ebx
je 0x415c69
mov eax, str._f:y
call fcn.00404070
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push 0x190
push 0xa07a50
push ecx
push edx
push eax
sub esp, 0x2c
mov esi, esp
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x40], esp
mov dword [ebp - 0x6c], esi
mov word [esi], cx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x415cb7
lea eax, [ebp - 0x3c]
mov ecx, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x40], edx
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x415cc0
sub ecx, dword [ebp - 0x40]
sar ecx, 1
push ecx
call fcn.00404070
mov ebx, dword [ebp - 0x70]
push edi
mov byte [ebp - 4], 5
call fcn.00415f00
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x415cf5
push eax
call fcn.0041afda
add esp, 4
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
jb 0x415d10
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0041afda
add esp, 4
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041af7a
mov esp, ebp
pop ebp
ret 4