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

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
test esi, esi
push edi
mov dword [esp + 0x14], ecx
je 0x475aaf
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x47514d
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
mov eax, dword [esp + 0x5c]
push eax
push esi
call dword [sym.imp.USER32.dll_FillRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x24
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
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 + 0x58], eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov esi, dword [eax + 4]
mov ebx, dword [eax + 8]
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipCreateFromHDC
test eax, eax
je 0x4751aa
mov eax, dword [esp + 0x10]
push eax
call sub.gdiplus.dll_GdipDeleteGraphics
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x24
mov eax, dword [0x5d51dc]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [0x5d51d8]
mov dword [esp + 0x44], edx
neg eax
sbb eax, eax
and eax, ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4751dd
mov dword [esp + 0x54], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
call sub.gdiplus.dll_GdipCreateImageAttributes
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x475207
mov ecx, dword [0x5d51e0]
mov dword [esp + 0x54], ecx
jmp 0x47520b
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
xor eax, eax
cmp edx, eax
jne 0x475268
mov edx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [edx + 0x14]
je 0x475224
mov edx, dword [ecx]
jmp 0x475226
xor edx, edx
test eax, eax
je 0x47522f
mov eax, dword [eax + 4]
jmp 0x475231
xor eax, eax
mov ecx, dword [esp + 0x58]
push 0
push 0
push edx
mov edx, dword [esp + 0x70]
push 2
push ecx
push edi
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x68]
push edi
push ecx
push edx
push eax
mov eax, dword [esp + 0x44]
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x60], eax
jmp 0x475a9b
cmp edx, 1
jne 0x4752e6
mov ebp, dword [esp + 0x68]
cmp ebp, eax
jne 0x47527e
cmp edi, esi
lea ebp, [esi - 1]
jne 0x47527e
mov ebp, esi
mov esi, dword [esp + 0x6c]
cmp esi, eax
jne 0x475293
mov eax, dword [esp + 0x58]
lea esi, [ebx - 1]
cmp eax, ebx
jne 0x475293
mov esi, ebx
mov edx, dword [esp + 0x14]
test ecx, ecx
mov eax, dword [edx + 0x14]
je 0x4752a2
mov edx, dword [ecx]
jmp 0x4752a4
xor edx, edx
test eax, eax
je 0x4752ad
mov eax, dword [eax + 4]
jmp 0x4752af
xor eax, eax
mov ecx, dword [esp + 0x64]
push 0
push 0
push edx
mov edx, dword [esp + 0x6c]
push 2
push esi
push ebp
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edi
push edx
mov edx, dword [esp + 0x3c]
push ecx
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x60], eax
jmp 0x475a9b
cmp edx, 2
jne 0x47542e
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x4752fd
mov esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x6c]
test eax, eax
jle 0x47530b
mov ebx, eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x58]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x68], ecx
jle 0x475a9b
mov edx, ebx
mov dword [esp + 0x6c], eax
neg edx
mov dword [esp + 0x30], edx
xor eax, eax
test edi, edi
jle 0x47540d
add ecx, ebx
mov dword [esp + 0x20], ecx
mov ecx, esi
neg ecx
mov dword [esp + 0x28], ecx
mov ecx, edi
mov dword [esp + 0x5c], ecx
jmp 0x475351
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edx, ebx
lea ebx, [eax + esi]
cmp ebx, edi
mov dword [esp + 0x24], ebx
jle 0x475360
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x58]
cmp ecx, ebx
jle 0x475370
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp]
mov ebx, dword [ebp + 4]
add ecx, eax
mov eax, dword [esp + 0x68]
add eax, ebx
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x47538e
mov ebx, dword [ebx]
mov dword [esp + 0x74], ebx
jmp 0x475396
mov dword [esp + 0x74], 0
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x4753aa
mov ebx, dword [ebx + 4]
mov dword [esp + 0x70], ebx
jmp 0x4753b2
mov dword [esp + 0x70], 0
mov ebx, dword [esp + 0x74]
push 0
push 0
push ebx
mov ebx, dword [esp + 0x70]
push 2
push edx
push esi
push ebx
mov ebx, dword [esp + 0x7c]
push ebx
push edx
mov edx, dword [esp + 0x94]
push esi
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x24]
add ecx, esi
cmp eax, edi
mov dword [esp + 0x5c], ecx
jl 0x475349
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x6c]
add ecx, ebx
add eax, edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
cmp ecx, eax
jl 0x475329
jmp 0x475a9b
cmp edx, 3
jne 0x475546
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x14]
mul esi
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x54]
mov esi, edx
shr esi, 1
test ecx, ecx
je 0x475455
mov ecx, dword [ecx]
jmp 0x475457
xor ecx, ecx
test eax, eax
je 0x475460
mov eax, dword [eax + 4]
jmp 0x475462
xor eax, eax
mov edx, dword [esp + 0x58]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x50]
push 2
push ebx
push esi
push 0
push 0
push edx
mov edx, dword [esp + 0x64]
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 + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
sub eax, esi
test edx, edx
je 0x4754a6
mov edx, dword [edx]
jmp 0x4754a8
xor edx, edx
test ecx, ecx
je 0x4754b5
mov ecx, dword [ecx + 4]
mov dword [esp + 0x60], ecx
jmp 0x4754bd
mov dword [esp + 0x60], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x64]
push 2
push ebx
lea ecx, [esi + esi]
push esi
push 0
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x84]
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 + 0x60], eax
lea eax, [esi + esi]
sub edi, eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x54]
add ebp, esi
test ecx, ecx
je 0x47550d
mov edx, ecx
mov ecx, dword [edx]
jmp 0x47550f
xor ecx, ecx
test eax, eax
je 0x475518
mov eax, dword [eax + 4]
jmp 0x47551a
xor eax, eax
push 0
mov edx, dword [esp + 0x48]
push 0
push ecx
mov ecx, dword [esp + 0x64]
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 + 0x60], eax
jmp 0x475a9b
cmp edx, 4
jne 0x475677
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 + 0x64], eax
add ecx, eax
mov eax, dword [edx + 0x14]
mov edx, dword [esp + 0x54]
test edx, edx
je 0x47557f
mov edx, dword [edx]
jmp 0x475581
xor edx, edx
test eax, eax
je 0x47558a
mov eax, dword [eax + 4]
jmp 0x47558c
xor eax, eax
push 0
push 0
push edx
mov edx, dword [esp + 0x64]
push 2
push ebx
push esi
push 0
push esi
push edx
mov edx, dword [esp + 0x68]
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 + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [ebp]
mov ecx, dword [ecx + 0x14]
test edx, edx
je 0x4755c9
mov edx, dword [edx]
jmp 0x4755cb
xor edx, edx
test ecx, ecx
je 0x4755d8
mov ecx, dword [ecx + 4]
mov dword [esp + 0x60], ecx
jmp 0x4755e0
mov dword [esp + 0x60], 0
push 0
push 0
push edx
mov edx, dword [esp + 0x64]
lea ecx, [esi - 1]
push 2
push ebx
push ecx
mov ecx, dword [esp + 0x7c]
push 0
push 0
push edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [esp + 0x90]
push eax
push ecx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ebp, dword [ebp]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
add ebp, eax
sub edi, eax
mov eax, dword [edx + 0x14]
add ebp, esi
sub edi, esi
test ecx, ecx
je 0x475638
mov ecx, dword [ecx]
jmp 0x47563a
xor ecx, ecx
test eax, eax
je 0x475643
mov eax, dword [eax + 4]
jmp 0x475645
xor eax, eax
push 0
push 0
push ecx
push 2
lea ecx, [esi - 1]
push ebx
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [esi + esi]
push 0
push edx
mov edx, dword [esp + 0x64]
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 + 0x60], eax
jmp 0x475a9b
cmp edx, 5
jne 0x47586a
mov eax, 0xaaaaaaab
mov ecx, dword [esp + 0x58]
mul esi
mov esi, edx
xor eax, eax
shr esi, 1
test ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], eax
jle 0x475a9b
mov ecx, ebx
sub edi, esi
neg ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ecx
mov edi, ebx
jmp 0x4756c3
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [ebp]
add ecx, dword [ebp + 4]
add eax, ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jle 0x4756e5
mov edi, dword [esp + 0x64]
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov eax, dword [eax + 0x14]
je 0x4756f8
mov ecx, dword [ecx]
jmp 0x4756fa
xor ecx, ecx
test eax, eax
je 0x475703
mov eax, dword [eax + 4]
jmp 0x475705
xor eax, eax
push 0
mov ebx, dword [esp + 0x48]
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 + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x14]
sub eax, esi
test ecx, ecx
je 0x475741
mov ecx, dword [ecx]
jmp 0x475743
xor ecx, ecx
test edx, edx
je 0x47574c
mov edx, dword [edx + 4]
jmp 0x47574e
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 + 0x60]
mov dword [esp + 0x6c], eax
cmp esi, ecx
mov eax, esi
jge 0x475843
mov ecx, esi
neg ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x60]
sub ecx, esi
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x18]
lea edi, [eax + esi]
cmp edi, ecx
mov ebx, esi
mov dword [esp + 0x30], edi
jle 0x4757a9
mov ebx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
cmp edi, ecx
jle 0x4757b9
mov edx, dword [esp + 0x64]
mov ecx, dword [ebp]
mov edi, dword [ebp + 4]
add ecx, eax
mov eax, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x54]
test edi, edi
je 0x4757d7
mov edi, dword [edi]
mov dword [esp + 0x74], edi
jmp 0x4757df
mov dword [esp + 0x74], 0
mov edi, dword [esp + 0x14]
mov edi, dword [edi + 0x14]
test edi, edi
je 0x4757f3
mov edi, dword [edi + 4]
mov dword [esp + 0x70], edi
jmp 0x4757fb
mov dword [esp + 0x70], 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 + 0x94]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x30]
add edi, ecx
mov ecx, dword [esp + 0x60]
cmp eax, ecx
mov dword [esp + 0x6c], edi
jl 0x475794
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add edi, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x64], edi
jl 0x4756bb
jmp 0x475a9b
cmp edx, 6
jne 0x47596d
cmp ebx, dword [esp + 0x58]
ja 0x475887
cmp esi, edi
ja 0x475887
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], esi
jmp 0x4758de
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
fild qword [esp + 0x28]
fild dword [esp + 0x58]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
fdiv st(1)
fild qword [esp + 0x28]
fst qword [esp + 0x28]
fidivr dword [esp + 0x30]
fst qword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4758c0
fstp st(0)
fld qword [esp + 0x30]
fxch st(1)
fmul st(1)
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x28]
fmul st(1)
mov dword [esp + 0x4c], eax
call sub.MSVCRT.dll__ftol
fstp st(0)
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp + 4]
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
mov edi, eax
mov eax, dword [ebp]
sar edi, 1
add edi, eax
mov eax, dword [esp + 0x58]
sub eax, edx
push 7
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x14]
push eax
call sub.gdiplus.dll_GdipSetInterpolationMode
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x47592f
mov edx, ecx
mov ecx, dword [edx]
jmp 0x475931
xor ecx, ecx
test eax, eax
je 0x47593a
mov eax, dword [eax + 4]
jmp 0x47593c
xor eax, eax
push 0
mov edx, dword [esp + 0x4c]
push 0
push ecx
mov ecx, dword [esp + 0x58]
push 2
push ebx
push esi
push 0
push 0
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edi
push eax
push edx
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x60], eax
jmp 0x475a9b
cmp edx, 7
jne 0x475a9b
mov eax, 0xaaaaaaab
mul dword [esp + 0x68]
mov esi, edx
shr esi, 1
test edi, edi
je 0x475a9b
cmp esi, edi
mov edx, esi
jle 0x475993
mov edx, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov eax, dword [eax + 0x14]
je 0x4759a6
mov ecx, dword [ecx]
jmp 0x4759a8
xor ecx, ecx
test eax, eax
je 0x4759b1
mov eax, dword [eax + 4]
jmp 0x4759b3
xor eax, eax
mov ebx, dword [esp + 0x6c]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x6c]
push 2
push ebx
push esi
push 0
push ecx
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x6c]
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 + 0x64], eax
mov eax, dword [ebp + 8]
sub eax, esi
cmp eax, ecx
jle 0x475a40
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
test edx, edx
mov ecx, dword [ecx + 0x14]
je 0x475a05
mov edx, dword [edx]
jmp 0x475a07
xor edx, edx
test ecx, ecx
je 0x475a10
mov ecx, dword [ecx + 4]
jmp 0x475a12
xor ecx, ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x6c]
push 2
push ebx
push esi
lea edx, [edx + esi*2]
push 0
push edx
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x68]
push esi
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
push eax
call sub.gdiplus.dll_GdipDrawImageRectRectI
mov dword [esp + 0x64], eax
mov ebp, dword [ebp]
lea ecx, [esi + esi]
sub edi, ecx
add ebp, esi
test edi, edi
jle 0x475a9b
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
test ecx, ecx
mov eax, dword [edx + 0x14]
je 0x475a61
mov ecx, dword [ecx]
jmp 0x475a63
xor ecx, ecx
test eax, eax
je 0x475a6c
mov eax, dword [eax + 4]
jmp 0x475a6e
xor eax, eax
mov edx, dword [esp + 0x58]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x6c]
push 2
push ebx
push esi
add esi, ecx
mov ecx, dword [esp + 0x5c]
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 + 0x60], eax
mov eax, dword [esp + 0x38]
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, 0x40
ret 0x24