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

Disassembly:
push 0xffffffffffffffff
push 0x4189e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x1c]
xor ebx, ebx
push edx
push eax
mov dword [esp + 0x24], ebx
call fcn.00412070
add esp, 0x10
cmp al, bl
mov byte [esp + 0x6c], al
je 0x41286b
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x30], eax
setne cl
mov byte [esp + 0x2c], cl
mov esi, eax
mov eax, dword [eax + 4]
lea edx, [esp + 0x68]
mov dword [esp + 0x54], ebx
push edx
push eax
mov dword [esp + 0x70], ebx
call sub.gdiplus.dll_GdipGetImageHeight
push eax
mov ecx, esi
call fcn.00414b20
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x64]
push ecx
mov esi, eax
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ebx
push edx
call sub.gdiplus.dll_GdipGetImageWidth
push eax
mov ecx, esi
call fcn.00414b20
mov eax, dword [esp + 0x64]
xor edx, edx
div dword [esp + 0x60]
push 1
push ebx
push 0x20
mov ebp, eax
mov eax, dword [esp + 0x74]
push eax
push ebp
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ecx, dword [esp + 0x5c]
push 0x10
mov dword [ecx], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x412619
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x64]
push ecx
push ebx
mov eax, dword [edx]
mov dword [esi], 0x41a294
push eax
mov dword [esp + 0x70], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov edx, dword [esp + 0x64]
mov edi, esi
mov dword [esi + 8], eax
mov dword [esi + 4], edx
mov dword [esp + 0x64], edi
jmp 0x41261f
mov dword [esp + 0x64], ebx
mov edi, ebx
cmp edi, ebx
mov dword [esp + 0x48], edi
setne byte [esp + 0x44]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], ebx
cmp eax, ebx
jle 0x41283e
mov dword [esp + 0x10], ebx
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x41267b
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x6c]
push eax
push ebx
push 0x26200a
push ebx
push ecx
push ebp
mov dword [esi], 0x41a294
mov dword [esp + 0x84], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov edx, dword [esp + 0x6c]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x41267d
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x40], esi
setne byte [esp + 0x3c]
xor eax, eax
cmp esi, ebx
mov dword [esp + 0x18], eax
je 0x4126a8
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x74]
cmp edi, ebx
mov byte [esp + 0x54], 3
mov ecx, dword [edx + 4]
mov edx, dword [edx]
je 0x4126c3
mov edi, dword [edi + 4]
jmp 0x4126c5
xor edi, edi
mov ebx, dword [esp + 0x68]
push 2
push ebx
push ebp
push ecx
xor ebx, ebx
push edx
push ebx
push ebx
push edi
push eax
call sub.gdiplus.dll_GdipDrawImagePointRectI
push eax
lea ecx, [esp + 0x28]
call fcn.00414b50
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
mov edi, eax
lea edx, [esp + 0x70]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esp + 0x14]
push eax
push 0x26200a
push ecx
push ebp
push ebx
push edx
mov dword [esp + 0x8c], ebx
call sub.gdiplus.dll_GdipCloneBitmapAreaI
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x412757
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x6c], eax
cmp eax, ebx
mov byte [esp + 0x54], 4
je 0x412749
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, eax
call fcn.00414c20
mov edi, eax
cmp edi, ebx
jne 0x41275b
mov edx, dword [esp + 0x70]
push edx
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x412759
mov edx, dword [esp + 0x70]
xor edi, edi
push edx
call sub.gdiplus.dll_GdipDisposeImage
jmp 0x412759
xor edi, edi
cmp edi, ebx
setne byte [esp + 0x34]
mov dword [esp + 0x38], edi
cmp edi, ebx
mov byte [esp + 0x54], 5
je 0x412772
mov eax, dword [edi + 4]
jmp 0x412774
xor eax, eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push ebx
push ebx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectI
push eax
lea ecx, [esp + 0x28]
call fcn.00414b50
mov eax, dword [esp + 0x78]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
push eax
mov ecx, esi
call fcn.00414b20
cmp eax, ebx
sete al
cmp al, bl
mov byte [esp + 0x6c], al
je 0x41287e
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [edx]
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov al, byte [esp + 0x34]
mov byte [esp + 0x54], 3
cmp al, bl
je 0x4127f8
cmp edi, ebx
je 0x4127f8
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x24]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
mov al, byte [esp + 0x3c]
mov byte [esp + 0x54], 1
cmp al, bl
je 0x41281b
cmp esi, ebx
je 0x41281b
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
inc eax
add edx, ebp
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jl 0x41263e
mov al, byte [esp + 0x44]
mov byte [esp + 0x54], bl
cmp al, bl
je 0x412856
cmp edi, ebx
je 0x412856
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
call fcn.00414a80
mov al, byte [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov al, byte [esp + 0x34]
mov byte [esp + 0x54], 3
cmp al, bl
je 0x412897
cmp edi, ebx
je 0x412897
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x24]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
mov al, byte [esp + 0x3c]
mov byte [esp + 0x54], 1
cmp al, bl
je 0x4128ba
cmp esi, ebx
je 0x4128ba
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov al, byte [esp + 0x44]
mov byte [esp + 0x54], bl
cmp al, bl
je 0x4128d4
mov ecx, dword [esp + 0x64]
cmp ecx, ebx
je 0x4128d4
mov eax, dword [ecx]
push 1
call dword [eax]
mov al, byte [esp + 0x2c]
mov dword [esp + 0x54], 0xffffffff
cmp al, bl
je 0x4128f2
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x4128f2
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret