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

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x58]
mov esi, ecx
test edi, edi
mov dword [esp + 0x14], esi
je 0x4912c8
cmp word [esi + 0x10], 0
je 0x490915
call fcn.004903b0
mov eax, dword [esi + 0x21c]
test eax, eax
jne 0x49093e
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x60]
push eax
push edi
call dword [sym.imp.USER32.dll_FillRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x24
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp]
sub eax, esi
sub edi, ebx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
test eax, eax
je 0x49099b
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x24
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
xor eax, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], edx
push eax
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4909e7
mov eax, dword [0x5dba0c]
test eax, eax
jne 0x4909db
mov ecx, dword [esp + 0x14]
call fcn.00490200
mov ecx, dword [0x5dba0c]
mov dword [esp + 0x58], ecx
jmp 0x4909eb
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
xor edx, edx
cmp eax, edx
jne 0x490a4e
mov eax, dword [esp + 0x14]
cmp ecx, edx
mov eax, dword [eax + 0x21c]
je 0x490a07
mov ecx, dword [ecx]
jmp 0x490a09
xor ecx, ecx
cmp eax, edx
je 0x490a12
mov eax, dword [eax + 4]
jmp 0x490a14
xor eax, eax
mov edx, dword [esp + 0x68]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x68]
push 2
push ecx
push edi
push edx
mov edx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x6c]
push edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
jmp 0x4912b4
cmp eax, 1
jne 0x490acf
mov ebp, dword [esp + 0x6c]
cmp ebp, edx
jne 0x490a64
cmp edi, esi
lea ebp, [esi - 1]
jne 0x490a64
mov ebp, esi
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x490a79
mov eax, dword [esp + 0x5c]
lea edx, [ebx - 1]
cmp eax, ebx
jne 0x490a79
mov edx, ebx
mov eax, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [eax + 0x21c]
je 0x490a8b
mov ecx, dword [ecx]
jmp 0x490a8d
xor ecx, ecx
test eax, eax
je 0x490a96
mov eax, dword [eax + 4]
jmp 0x490a98
xor eax, eax
push 0
push 0
push ecx
mov ecx, dword [esp + 0x74]
push 2
push edx
mov edx, dword [esp + 0x78]
push ebp
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edi
push edx
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
jmp 0x4912b4
cmp eax, 2
jne 0x490c1d
mov eax, dword [esp + 0x6c]
cmp eax, edx
jle 0x490ae6
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x70]
cmp eax, edx
jle 0x490af4
mov ebx, eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x5c]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x6c], ecx
jle 0x4912b4
mov edx, ebx
mov dword [esp + 0x70], eax
neg edx
mov dword [esp + 0x34], edx
xor eax, eax
test edi, edi
jle 0x490bfc
add ecx, ebx
mov dword [esp + 0x24], ecx
mov ecx, esi
neg ecx
mov dword [esp + 0x2c], ecx
mov ecx, edi
mov dword [esp + 0x20], ecx
jmp 0x490b3a
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edx, ebx
lea ebx, [eax + esi]
cmp ebx, edi
mov dword [esp + 0x28], ebx
jle 0x490b49
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x5c]
cmp ecx, ebx
jle 0x490b59
mov edx, dword [esp + 0x70]
mov ecx, dword [ebp]
mov ebx, dword [ebp + 4]
add ecx, eax
mov eax, dword [esp + 0x6c]
add eax, ebx
mov ebx, dword [esp + 0x58]
test ebx, ebx
je 0x490b77
mov ebx, dword [ebx]
mov dword [esp + 0x74], ebx
jmp 0x490b7f
mov dword [esp + 0x74], 0
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x21c]
test ebx, ebx
je 0x490b96
mov ebx, dword [ebx + 4]
mov dword [esp + 0x60], ebx
jmp 0x490b9e
mov dword [esp + 0x60], 0
mov ebx, dword [esp + 0x74]
push 0
push 0
push ebx
mov ebx, dword [esp + 0x74]
push 2
push edx
push esi
push ebx
mov ebx, dword [esp + 0x80]
push ebx
push edx
mov edx, dword [esp + 0x84]
push esi
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x28]
add ecx, esi
cmp eax, edi
mov dword [esp + 0x20], ecx
jl 0x490b32
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
add ecx, ebx
add eax, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jl 0x490b12
jmp 0x4912b4
cmp eax, 3
jne 0x490d3e
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mul esi
mov eax, dword [ecx + 0x21c]
mov ecx, dword [esp + 0x58]
mov esi, edx
shr esi, 1
test ecx, ecx
je 0x490c47
mov ecx, dword [ecx]
jmp 0x490c49
xor ecx, ecx
test eax, eax
je 0x490c52
mov eax, dword [eax + 4]
jmp 0x490c54
xor eax, eax
mov edx, dword [esp + 0x5c]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x54]
push 2
push ebx
push esi
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x21c]
sub eax, esi
test edx, edx
je 0x490c9b
mov edx, dword [edx]
jmp 0x490c9d
xor edx, edx
test ecx, ecx
je 0x490caa
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], ecx
jmp 0x490cb2
mov dword [esp + 0x64], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
push 2
push ebx
lea ecx, [esi + esi]
push esi
push 0
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x88]
push esi
push ecx
push eax
mov eax, dword [esp + 0x40]
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x14]
mov ebp, dword [ebp]
mov dword [esp + 0x64], eax
lea eax, [esi + esi]
sub edi, eax
mov eax, dword [ecx + 0x21c]
mov ecx, dword [esp + 0x58]
add ebp, esi
test ecx, ecx
je 0x490d05
mov edx, ecx
mov ecx, dword [edx]
jmp 0x490d07
xor ecx, ecx
test eax, eax
je 0x490d10
mov eax, dword [eax + 4]
jmp 0x490d12
xor eax, eax
push 0
mov edx, dword [esp + 0x4c]
push 0
push ecx
mov ecx, dword [esp + 0x68]
push 2
push ebx
push esi
push 0
push esi
push ecx
push edi
push edx
push ebp
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
jmp 0x4912b4
cmp eax, 4
jne 0x490e7b
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 + 0x14]
sar eax, 1
mov dword [esp + 0x68], eax
add ecx, eax
mov eax, dword [edx + 0x21c]
mov edx, dword [esp + 0x58]
test edx, edx
je 0x490d7a
mov edx, dword [edx]
jmp 0x490d7c
xor edx, edx
test eax, eax
je 0x490d85
mov eax, dword [eax + 4]
jmp 0x490d87
xor eax, eax
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
push 2
push ebx
push esi
push 0
push esi
push edx
mov edx, dword [esp + 0x6c]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [ebp]
mov ecx, dword [ecx + 0x21c]
test edx, edx
je 0x490dc7
mov edx, dword [edx]
jmp 0x490dc9
xor edx, edx
test ecx, ecx
je 0x490dd6
mov ecx, dword [ecx + 4]
mov dword [esp + 0x64], ecx
jmp 0x490dde
mov dword [esp + 0x64], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
lea ecx, [esi - 1]
push 2
push ebx
push ecx
mov ecx, dword [esp + 0x80]
push 0
push 0
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x94]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ebp, dword [ebp]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
add ebp, eax
sub edi, eax
mov eax, dword [edx + 0x21c]
add ebp, esi
sub edi, esi
test ecx, ecx
je 0x490e3c
mov ecx, dword [ecx]
jmp 0x490e3e
xor ecx, ecx
test eax, eax
je 0x490e47
mov eax, dword [eax + 4]
jmp 0x490e49
xor eax, eax
push 0
push 0
push ecx
push 2
lea ecx, [esi - 1]
push ebx
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esi + esi]
push 0
push edx
mov edx, dword [esp + 0x68]
push ecx
push edi
push edx
push ebp
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
jmp 0x4912b4
cmp eax, 5
jne 0x491077
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x5c]
mul esi
mov esi, edx
xor eax, eax
shr esi, 1
test ecx, ecx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x1c], eax
jle 0x4912b4
mov ecx, ebx
sub edi, esi
neg ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
mov edi, ebx
jmp 0x490ec7
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [ebp]
add ecx, dword [ebp + 4]
add eax, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jle 0x490ee9
mov edi, dword [esp + 0x68]
mov dword [esp + 0x6c], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov eax, dword [eax + 0x21c]
je 0x490eff
mov ecx, dword [ecx]
jmp 0x490f01
xor ecx, ecx
test eax, eax
je 0x490f0a
mov eax, dword [eax + 4]
jmp 0x490f0c
xor eax, eax
push 0
mov ebx, dword [esp + 0x4c]
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 + 0x14]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x21c]
sub eax, esi
test ecx, ecx
je 0x490f4b
mov ecx, dword [ecx]
jmp 0x490f4d
xor ecx, ecx
test edx, edx
je 0x490f56
mov edx, dword [edx + 4]
jmp 0x490f58
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 + 0x64]
mov dword [esp + 0x70], eax
cmp esi, ecx
mov eax, esi
jge 0x491050
mov ecx, esi
neg ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x64]
sub ecx, esi
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
lea edi, [eax + esi]
cmp edi, ecx
mov ebx, esi
mov dword [esp + 0x34], edi
jle 0x490fb3
mov ebx, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x20]
cmp edi, ecx
jle 0x490fc3
mov edx, dword [esp + 0x68]
mov ecx, dword [ebp]
mov edi, dword [ebp + 4]
add ecx, eax
mov eax, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x58]
test edi, edi
je 0x490fe1
mov edi, dword [edi]
mov dword [esp + 0x74], edi
jmp 0x490fe9
mov dword [esp + 0x74], 0
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 0x21c]
test edi, edi
je 0x491000
mov edi, dword [edi + 4]
mov dword [esp + 0x60], edi
jmp 0x491008
mov dword [esp + 0x60], 0
mov edi, dword [esp + 0x74]
push 0
push 0
push edi
push 2
push edx
push ebx
push 0
push esi
push edx
mov edx, dword [esp + 0x84]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x34]
add edi, ecx
mov ecx, dword [esp + 0x64]
cmp eax, ecx
mov dword [esp + 0x70], edi
jl 0x490f9e
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5c]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x68], edi
jl 0x490ebf
jmp 0x4912b4
cmp eax, 6
jne 0x49117d
cmp ebx, dword [esp + 0x5c]
ja 0x491094
cmp esi, edi
ja 0x491094
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], esi
jmp 0x4910eb
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
fild qword [esp + 0x2c]
fild dword [esp + 0x5c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
fdiv st(1)
fild qword [esp + 0x2c]
fst qword [esp + 0x2c]
fidivr dword [esp + 0x34]
fst qword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4910cd
fstp st(0)
fld qword [esp + 0x34]
fxch st(1)
fmul st(1)
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x2c]
fmul st(1)
mov dword [esp + 0x50], eax
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov edi, eax
mov eax, dword [ebp]
sar edi, 1
add edi, eax
mov eax, dword [esp + 0x5c]
sub eax, edx
push 7
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipSetInterpolationMode
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 0x21c]
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x49113f
mov edx, ecx
mov ecx, dword [edx]
jmp 0x491141
xor ecx, ecx
test eax, eax
je 0x49114a
mov eax, dword [eax + 4]
jmp 0x49114c
xor eax, eax
push 0
mov edx, dword [esp + 0x50]
push 0
push ecx
mov ecx, dword [esp + 0x5c]
push 2
push ebx
push esi
push 0
push 0
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edi
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
jmp 0x4912b4
cmp eax, 7
jne 0x4912b4
mov eax, 0xaaaaaaab
mul dword [esp + 0x6c]
mov esi, edx
shr esi, 1
test edi, edi
je 0x4912b4
cmp esi, edi
mov edx, esi
jle 0x4911a3
mov edx, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov eax, dword [eax + 0x21c]
je 0x4911b9
mov ecx, dword [ecx]
jmp 0x4911bb
xor ecx, ecx
test eax, eax
je 0x4911c4
mov eax, dword [eax + 4]
jmp 0x4911c6
xor eax, eax
mov ebx, dword [esp + 0x70]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x70]
push 2
push ebx
push esi
push 0
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [ebp]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
sub eax, esi
cmp eax, ecx
jle 0x491256
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
test edx, edx
mov ecx, dword [ecx + 0x21c]
je 0x49121b
mov edx, dword [edx]
jmp 0x49121d
xor edx, edx
test ecx, ecx
je 0x491226
mov ecx, dword [ecx + 4]
jmp 0x491228
xor ecx, ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x70]
push 2
push ebx
push esi
lea edx, [edx + esi*2]
push 0
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x6c]
push esi
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x68], eax
mov ebp, dword [ebp]
lea ecx, [esi + esi]
sub edi, ecx
add ebp, esi
test edi, edi
jle 0x4912b4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
test ecx, ecx
mov eax, dword [edx + 0x21c]
je 0x49127a
mov ecx, dword [ecx]
jmp 0x49127c
xor ecx, ecx
test eax, eax
je 0x491285
mov eax, dword [eax + 4]
jmp 0x491287
xor eax, eax
mov edx, dword [esp + 0x5c]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x70]
push 2
push ebx
push esi
add esi, ecx
mov ecx, dword [esp + 0x60]
push 0
push esi
push edx
mov edx, dword [esp + 0x34]
push edi
push ecx
push ebp
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x3c]
push eax
call sub.gdiplus.dll_GdipDisposeImageAttributes
mov ecx, dword [esp + 0x10]
push ecx
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x24