Function at 0x467840
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 0x4681c1
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x46787d
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 0x4678da
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 [0x6016d8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x6016dc]
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 0x46790d
xor eax, eax
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x50]
cmp edx, ecx
jne 0x46796f
mov edx, dword [esp + 0x18]
cmp eax, ecx
mov edx, dword [edx + 0x14]
je 0x467924
mov eax, dword [eax]
jmp 0x467926
xor eax, eax
cmp edx, ecx
je 0x46792d
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 0x4679f8
mov ebp, dword [esp + 0x5c]
cmp ebp, ecx
jne 0x467989
cmp edi, esi
lea ebp, [esi - 1]
jne 0x467989
mov ebp, esi
mov edx, dword [esp + 0x60]
cmp edx, ecx
jne 0x46799e
mov esi, dword [esp + 0x14]
cmp ebx, esi
lea edx, [esi - 1]
jne 0x46799e
mov edx, esi
mov esi, dword [esp + 0x18]
cmp eax, ecx
mov esi, dword [esi + 0x14]
je 0x4679ad
mov eax, dword [eax]
jmp 0x4679af
xor eax, eax
cmp esi, ecx
je 0x4679b6
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 0x467b35
mov eax, dword [esp + 0x5c]
cmp eax, ecx
jle 0x467a0f
mov esi, eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x60]
cmp eax, ecx
jle 0x467a1b
mov dword [esp + 0x14], eax
cmp ebx, ecx
mov dword [esp + 0x60], ecx
jle 0x4681b7
mov edx, dword [esp + 0x14]
mov dword [esp + 0x5c], ebx
neg edx
mov dword [esp + 0x30], edx
xor eax, eax
test edi, edi
jle 0x467b01
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 0x467a61
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 0x467a72
mov esi, ecx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jle 0x467a82
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 0x467aa4
mov ebp, dword [ebp]
jmp 0x467aa6
xor ebp, ebp
test ebx, ebx
je 0x467aaf
mov ebx, dword [ebx + 4]
jmp 0x467ab1
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 0x467a59
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 0x467a35
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 0x467c58
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 0x467b5c
mov ecx, dword [ecx]
jmp 0x467b5e
xor ecx, ecx
test eax, eax
je 0x467b67
mov eax, dword [eax + 4]
jmp 0x467b69
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 0x467bac
mov edx, dword [edx]
jmp 0x467bae
xor edx, edx
test ecx, ecx
je 0x467bbb
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
jmp 0x467bc3
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 0x467c10
mov edx, ecx
mov ecx, dword [edx]
jmp 0x467c12
xor ecx, ecx
test eax, eax
je 0x467c1b
mov eax, dword [eax + 4]
jmp 0x467c1d
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 0x467d98
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 0x467c91
mov edx, dword [edx]
jmp 0x467c93
xor edx, edx
test ecx, ecx
je 0x467c9c
mov ecx, dword [ecx + 4]
jmp 0x467c9e
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 0x467cdb
mov edx, dword [edx]
jmp 0x467cdd
xor edx, edx
test ecx, ecx
je 0x467cea
mov ecx, dword [ecx + 4]
mov dword [esp + 0x54], ecx
jmp 0x467cf2
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 0x467d4a
mov edx, dword [edx]
jmp 0x467d4c
xor edx, edx
test ecx, ecx
je 0x467d55
mov ecx, dword [ecx + 4]
jmp 0x467d57
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 0x467f8c
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 0x4681b7
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 0x467df8
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 0x467e0b
mov ecx, dword [ecx]
jmp 0x467e0d
xor ecx, ecx
test eax, eax
je 0x467e16
mov eax, dword [eax + 4]
jmp 0x467e18
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 0x467e54
mov ecx, dword [ecx]
jmp 0x467e56
xor ecx, ecx
test edx, edx
je 0x467e5f
mov edx, dword [edx + 4]
jmp 0x467e61
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 0x467f56
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 0x467ebc
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x50]
cmp edi, ecx
jle 0x467ecc
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 0x467eea
mov edi, dword [edi]
mov dword [esp + 0x5c], edi
jmp 0x467ef2
mov dword [esp + 0x5c], 0
mov edi, dword [esp + 0x18]
mov edi, dword [edi + 0x14]
test edi, edi
je 0x467f06
mov edi, dword [edi + 4]
mov dword [esp + 0x68], edi
jmp 0x467f0e
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 0x467ea7
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 0x467dd2
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 0x46808e
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
ja 0x467fa7
cmp esi, edi
ja 0x467fa7
mov dword [esp + 0x3c], esi
jmp 0x467ffc
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 0x467fe0
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 0x468045
mov ecx, dword [ecx]
jmp 0x468047
xor ecx, ecx
test eax, eax
je 0x468050
mov eax, dword [eax + 4]
jmp 0x468052
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 0x4681b7
mov eax, 0xaaaaaaab
mul dword [esp + 0x5c]
mov esi, edx
shr esi, 1
test edi, edi
je 0x4681b7
cmp esi, edi
mov edx, esi
jle 0x4680b4
mov edx, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
test eax, eax
mov ecx, dword [ecx + 0x14]
je 0x4680c7
mov eax, dword [eax]
jmp 0x4680c9
xor eax, eax
test ecx, ecx
je 0x4680d2
mov ecx, dword [ecx + 4]
jmp 0x4680d4
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 0x46815c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x48]
test edx, edx
mov ecx, dword [ecx + 0x14]
je 0x468121
mov edx, dword [edx]
jmp 0x468123
xor edx, edx
test ecx, ecx
je 0x46812c
mov ecx, dword [ecx + 4]
jmp 0x46812e
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 0x4681b7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
test ecx, ecx
mov eax, dword [edx + 0x14]
je 0x46817d
mov ecx, dword [ecx]
jmp 0x46817f
xor ecx, ecx
test eax, eax
je 0x468188
mov eax, dword [eax + 4]
jmp 0x46818a
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