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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
test esi, esi
push edi
mov dword [esp + 0x18], ecx
je 0x411bc1
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x41127d
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 0
mov edi, dword [ebp + 8]
mov edx, dword [ebp]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov esi, dword [eax + 4]
sub edi, edx
sub ebx, ecx
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], ecx
call sub.gdiplus.dll_GdipCreateFromHDC
test eax, eax
je 0x4112da
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
mov ecx, dword [0x4948f4]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4948f8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x68]
neg eax
sbb eax, eax
and eax, ecx
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x48], eax
je 0x41130d
xor eax, eax
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x50]
cmp edx, ecx
jne 0x41136f
mov edx, dword [esp + 0x18]
cmp eax, ecx
mov edx, dword [edx + 0x14]
je 0x411324
mov eax, dword [eax]
jmp 0x411326
xor eax, eax
cmp edx, ecx
je 0x41132d
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x54]
push 0
push 0
push eax
mov eax, dword [esp + 0x64]
push 2
push ebx
push edi
push eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x4c]
push ebx
push edi
push eax
mov eax, dword [esp + 0x3c]
push edx
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 1
jne 0x4113f8
mov ebp, dword [esp + 0x5c]
cmp ebp, ecx
jne 0x411389
cmp edi, esi
lea ebp, [esi - 1]
jne 0x411389
mov ebp, esi
mov edx, dword [esp + 0x60]
cmp edx, ecx
jne 0x41139e
mov esi, dword [esp + 0x14]
cmp ebx, esi
lea edx, [esi - 1]
jne 0x41139e
mov edx, esi
mov esi, dword [esp + 0x18]
cmp eax, ecx
mov esi, dword [esi + 0x14]
je 0x4113ad
mov eax, dword [eax]
jmp 0x4113af
xor eax, eax
cmp esi, ecx
je 0x4113b6
mov ecx, dword [esi + 4]
push 0
push 0
push eax
mov eax, dword [esp + 0x60]
push 2
push edx
mov edx, dword [esp + 0x6c]
push ebp
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x4c]
push ebx
push edi
push edx
push eax
push ecx
mov ecx, dword [esp + 0x44]
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 2
jne 0x411535
mov eax, dword [esp + 0x5c]
cmp eax, ecx
jle 0x41140f
mov esi, eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x60]
cmp eax, ecx
jle 0x41141b
mov dword [esp + 0x14], eax
cmp ebx, ecx
mov dword [esp + 0x60], ecx
jle 0x411bb7
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], ebx
neg edx
mov dword [esp + 0x30], edx
xor eax, eax
test edi, edi
jle 0x411501
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x50], ecx
mov ecx, esi
neg ecx
mov dword [esp + 0x1c], ecx
mov ecx, edi
mov dword [esp + 0x68], ecx
jmp 0x411461
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
lea ebx, [eax + esi]
cmp ebx, edi
mov dword [esp + 0x2c], ebx
jle 0x411472
mov esi, ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jle 0x411482
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebp]
mov ebx, dword [ebp + 4]
mov ebp, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x60]
add eax, ebx
mov ebx, dword [esp + 0x18]
test ebp, ebp
mov ebx, dword [ebx + 0x14]
je 0x4114a4
mov ebp, dword [ebp]
jmp 0x4114a6
xor ebp, ebp
test ebx, ebx
je 0x4114af
mov ebx, dword [ebx + 4]
jmp 0x4114b1
xor ebx, ebx
push 0
push 0
push ebp
mov ebp, dword [esp + 0x64]
push 2
push edx
push esi
push ebp
mov ebp, dword [esp + 0x70]
push ebp
push edx
mov edx, dword [esp + 0x34]
push esi
push eax
push ecx
push ebx
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
add ecx, esi
cmp eax, edi
mov dword [esp + 0x68], ecx
jl 0x411459
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x5c]
add ecx, eax
mov eax, dword [esp + 0x20]
add ebx, edx
cmp ecx, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], ebx
jl 0x411435
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 3
jne 0x411658
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x48]
mul esi
mov eax, dword [esp + 0x18]
mov esi, edx
shr esi, 1
mov eax, dword [eax + 0x14]
test ecx, ecx
je 0x41155c
mov ecx, dword [ecx]
jmp 0x41155e
xor ecx, ecx
test eax, eax
je 0x411567
mov eax, dword [eax + 4]
jmp 0x411569
xor eax, eax
push 0
push 0
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push 2
push ecx
mov ecx, dword [ebp]
push esi
push 0
push 0
push ebx
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
sub eax, esi
test edx, edx
je 0x4115ac
mov edx, dword [edx]
jmp 0x4115ae
xor edx, edx
test ecx, ecx
je 0x4115bb
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
jmp 0x4115c3
mov dword [esp + 0x54], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x20]
push 2
push edx
mov edx, dword [esp + 0x68]
lea ecx, [esi + esi]
push esi
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
push esi
push ecx
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x18]
mov ebp, dword [ebp]
mov dword [esp + 0x54], eax
lea eax, [esi + esi]
sub edi, eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x48]
add ebp, esi
test ecx, ecx
je 0x411610
mov edx, ecx
mov ecx, dword [edx]
jmp 0x411612
xor ecx, ecx
test eax, eax
je 0x41161b
mov eax, dword [eax + 4]
jmp 0x41161d
xor eax, eax
push 0
push 0
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push 2
push ecx
push esi
push 0
push esi
push ebx
push edi
push edx
push ebp
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 4
jne 0x411798
mov eax, 0xaaaaaaab
mov ecx, dword [ebp]
mul esi
mov esi, edx
mov eax, edi
shr esi, 1
sub eax, esi
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
mov dword [esp + 0x60], eax
add eax, ecx
mov ecx, dword [esp + 0x18]
test edx, edx
mov ecx, dword [ecx + 0x14]
je 0x411691
mov edx, dword [edx]
jmp 0x411693
xor edx, edx
test ecx, ecx
je 0x41169c
mov ecx, dword [ecx + 4]
jmp 0x41169e
xor ecx, ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x20]
push 2
push edx
mov edx, dword [esp + 0x30]
push esi
push 0
push esi
push ebx
push esi
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [ebp]
mov ecx, dword [ecx + 0x14]
test edx, edx
je 0x4116db
mov edx, dword [edx]
jmp 0x4116dd
xor edx, edx
test ecx, ecx
je 0x4116ea
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
jmp 0x4116f2
mov dword [esp + 0x54], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esi - 1]
push 2
push edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x78]
push 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x84]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [ebp]
add eax, ecx
sub edi, ecx
mov ecx, dword [edx + 0x14]
mov edx, dword [esp + 0x48]
add eax, esi
sub edi, esi
test edx, edx
je 0x41174a
mov edx, dword [edx]
jmp 0x41174c
xor edx, edx
test ecx, ecx
je 0x411755
mov ecx, dword [ecx + 4]
jmp 0x411757
xor ecx, ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x20]
push 2
push edx
lea edx, [esi - 1]
push edx
lea edx, [esi + esi]
push 0
push edx
mov edx, dword [esp + 0x3c]
push ebx
push edi
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 5
jne 0x41198c
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mul esi
mov esi, edx
xor eax, eax
shr esi, 1
test ebx, ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
jle 0x411bb7
sub edi, esi
mov dword [esp + 0x60], ebx
neg ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x1c], ecx
mov ecx, eax
mov edi, dword [esp + 0x4c]
add ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, ebx
mov dword [esp + 0x50], eax
jle 0x4117f8
mov edi, dword [esp + 0x60]
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov eax, dword [eax + 0x14]
je 0x41180b
mov ecx, dword [ecx]
jmp 0x41180d
xor ecx, ecx
test eax, eax
je 0x411816
mov eax, dword [eax + 4]
jmp 0x411818
xor eax, eax
push 0
mov ebx, dword [esp + 0x3c]
push 0
push ecx
push 2
mov ecx, dword [esp + 0x20]
push edi
push esi
push 0
push 0
push edi
push esi
push ebx
push edx
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x14]
sub eax, esi
test ecx, ecx
je 0x411854
mov ecx, dword [ecx]
jmp 0x411856
xor ecx, ecx
test edx, edx
je 0x41185f
mov edx, dword [edx + 4]
jmp 0x411861
xor edx, edx
push 0
push 0
push ecx
push 2
push edi
push esi
lea ecx, [esi + esi]
push 0
push ecx
push edi
push esi
push ebx
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], eax
cmp esi, ecx
mov eax, esi
jge 0x411956
mov ecx, esi
neg ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x54]
sub ecx, esi
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x14]
lea edi, [eax + esi]
cmp edi, ecx
mov ebx, esi
mov dword [esp + 0x30], edi
jle 0x4118bc
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
cmp edi, ecx
jle 0x4118cc
mov edx, dword [esp + 0x60]
mov ecx, dword [ebp]
mov edi, dword [ebp + 4]
add ecx, eax
mov eax, dword [esp + 0x2c]
add eax, edi
mov edi, dword [esp + 0x48]
test edi, edi
je 0x4118ea
mov edi, dword [edi]
mov dword [esp + 0x5c], edi
jmp 0x4118f2
mov dword [esp + 0x5c], 0
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0x14]
test edi, edi
je 0x411906
mov edi, dword [edi + 4]
mov dword [esp + 0x68], edi
jmp 0x41190e
mov dword [esp + 0x68], 0
mov edi, dword [esp + 0x5c]
push 0
push 0
push edi
push 2
push edx
push ebx
push 0
push esi
push edx
mov edx, dword [esp + 0x8c]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x30]
add edi, ecx
mov ecx, dword [esp + 0x54]
cmp eax, ecx
mov dword [esp + 0x58], edi
jl 0x4118a7
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
add edi, edx
cmp eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x60], edi
jl 0x4117d2
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 6
jne 0x411a8e
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
ja 0x4119a7
cmp esi, edi
ja 0x4119a7
mov dword [esp + 0x3c], esi
jmp 0x4119fc
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
fild qword [esp + 0x34]
fild dword [esp + 0x20]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
fdiv st(1)
fild qword [esp + 0x34]
fst qword [esp + 0x24]
fidivr dword [esp + 0x30]
fst qword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4119e0
fstp st(0)
fld qword [esp + 0x34]
fxch st(1)
fmul st(1)
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul st(1)
mov ebp, eax
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
mov eax, edi
sub eax, edx
push 7
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, ebx
sar edi, 1
sub eax, ebp
add edi, edx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0x20]
sar ebx, 1
add ebx, eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipSetInterpolationMode
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x411a45
mov ecx, dword [ecx]
jmp 0x411a47
xor ecx, ecx
test eax, eax
je 0x411a50
mov eax, dword [eax + 4]
jmp 0x411a52
xor eax, eax
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x48]
push 2
push edx
mov edx, dword [esp + 0x24]
push esi
push 0
push 0
push ebp
push ecx
push ebx
push edi
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24
cmp edx, 7
jne 0x411bb7
mov eax, 0xaaaaaaab
mul dword [esp + 0x5c]
mov esi, edx
shr esi, 1
test edi, edi
je 0x411bb7
cmp esi, edi
mov edx, esi
jle 0x411ab4
mov edx, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
test eax, eax
mov ecx, dword [ecx + 0x14]
je 0x411ac7
mov eax, dword [eax]
jmp 0x411ac9
xor eax, eax
test ecx, ecx
je 0x411ad2
mov ecx, dword [ecx + 4]
jmp 0x411ad4
xor ecx, ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x6c]
push 2
push eax
mov eax, dword [esp + 0x68]
push esi
push 0
push eax
mov eax, dword [ebp]
push ebx
push edx
mov edx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [ebp]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 8]
sub eax, esi
cmp eax, ecx
jle 0x411b5c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
test edx, edx
mov ecx, dword [ecx + 0x14]
je 0x411b21
mov edx, dword [edx]
jmp 0x411b23
xor edx, edx
test ecx, ecx
je 0x411b2c
mov ecx, dword [ecx + 4]
jmp 0x411b2e
xor ecx, ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x6c]
push 2
push edx
mov edx, dword [esp + 0x68]
push esi
push 0
lea edx, [edx + esi*2]
push edx
mov edx, dword [esp + 0x3c]
push ebx
push esi
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x4c], eax
mov ebp, dword [ebp]
lea ecx, [esi + esi]
sub edi, ecx
add ebp, esi
test edi, edi
jle 0x411bb7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov eax, dword [edx + 0x14]
je 0x411b7d
mov ecx, dword [ecx]
jmp 0x411b7f
xor ecx, ecx
test eax, eax
je 0x411b88
mov eax, dword [eax + 4]
jmp 0x411b8a
xor eax, eax
mov edx, dword [esp + 0x54]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x6c]
push 2
push ecx
mov ecx, dword [esp + 0x30]
push esi
add esi, edx
mov edx, dword [esp + 0x28]
push 0
push esi
push ebx
push edi
push ecx
push ebp
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x24