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

Disassembly:
push 0xffffffffffffffff
push 0x6186d0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
test edi, edi
je 0x480e24
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.user32.dll_IsRectEmpty]
test eax, eax
jne 0x480e24
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
mov ebx, ecx
sub ebx, dword [esp + 0x90]
sub esi, edx
test eax, eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], esi
je 0x480e3e
cmp dword [eax + 4], 0
je 0x480e3e
mov ebp, dword [esp + 0x88]
test ebp, ebp
je 0x480e3e
cmp dword [ebp + 4], 0
je 0x480e3e
add esi, edi
push esi
mov esi, dword [esp + 0x84]
push edi
push edx
push ecx
mov ecx, dword [esi + 4]
push ecx
call fcn.00481520
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x90]
push edi
lea eax, [ebx + edi]
push eax
push edx
mov edx, dword [esi + 4]
push ecx
push edx
mov eax, ebp
call fcn.00481520
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x20
lea ecx, [esp + 0x60]
call fcn.00576f1a
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x78], 0
mov eax, dword [ebp + 4]
test eax, eax
je 0x480e60
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x64]
call fcn.005775b2
test eax, eax
je 0x480ecb
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], vtable.CBitmap.0
mov byte [esp + 0x78], 1
mov eax, dword [ebp + 4]
mov eax, dword [eax + 4]
lea ebp, [esi + edi]
lea ecx, [ebx + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x24], ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x5c]
call fcn.00577879
test eax, eax
lea ecx, [esp + 0x58]
jne 0x480ef3
mov byte [esp + 0x78], 0
mov dword [esp + 0x58], vtable.CBitmap.0
call fcn.00424fa0
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.0057762c
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x20
push ecx
lea ecx, [esp + 0x64]
call fcn.00452060
push 0x28
mov dword [esp + 0x54], eax
call fcn.005655d6
mov ecx, dword [esp + 0x1c]
mov ebx, eax
xor eax, eax
mov dword [ebx + 4], ecx
imul ecx, ebp
add esp, 4
push eax
push eax
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [ebx], 0x28
mov dword [ebx + 8], ebp
mov word [ebx + 0xc], 1
mov word [ebx + 0xe], 0x20
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x74]
push ebx
push eax
mov dword [esp + 0x60], ebx
call dword [sym.imp.gdi32.dll_CreateDIBSection]
test eax, eax
mov dword [esp + 0x54], eax
je 0x481308
cmp dword [esp + 0x14], 0
je 0x481308
push eax
lea ecx, [esp + 0x64]
call fcn.004318a0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x80]
push 0xcc0020
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.00451ff0
mov ecx, dword [esp + 0x84]
lea eax, [ecx - 0x64]
cdq
idiv edi
xor ebp, ebp
test edi, edi
mov dword [esp + 0x44], eax
jle 0x4811d6
lea edx, [esi + 1]
mov dword [esp + 0x24], edx
lea edx, [edi + edi]
mov dword [esp + 0x30], edx
mov edx, eax
imul eax, edi
neg edx
mov dword [esp + 0x28], ecx
sub ecx, eax
mov eax, esi
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x84], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
jmp 0x481014
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
add eax, ecx
cmp esi, eax
mov ebx, esi
mov dword [esp + 0x3c], eax
jge 0x48107a
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x90]
mov esi, dword [esp + 0x2c]
sub eax, ebx
sub eax, dword [esp + 0x94]
add edx, edi
add eax, edi
imul edx, eax
mov eax, dword [esp + 0x14]
add edx, ebp
add edx, edi
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x38], eax
call fcn.00481320
mov ecx, dword [esp + 0x38]
add ebx, 1
cmp ebx, dword [esp + 0x3c]
mov dword [ecx], eax
jl 0x481027
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
lea eax, [edx + ebp]
cmp ebx, eax
jge 0x4810e7
lea esp, [esp]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x14]
sub eax, ebp
sub eax, dword [esp + 0x94]
add ecx, edi
sub eax, esi
mov esi, dword [esp + 0x28]
add eax, edi
imul ecx, eax
add ecx, ebx
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x3c], eax
call fcn.00481320
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [ecx], eax
add ebx, 1
lea eax, [edx + ebp]
cmp ebx, eax
jl 0x481090
mov ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x24]
jge 0x481145
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
sub eax, ebx
sub eax, dword [esp + 0x94]
add ecx, edi
add eax, edi
imul ecx, eax
add ecx, ebp
add ecx, dword [esp + 0x1c]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov dword [esp + 0x3c], eax
call fcn.00481320
mov ecx, dword [esp + 0x3c]
add ebx, 1
cmp ebx, dword [esp + 0x24]
mov dword [ecx], eax
jl 0x4810f1
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
cmp ebx, dword [esp + 0x84]
jge 0x4811a4
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x98]
sub edx, dword [esp + 0x90]
mov esi, dword [esp + 0x2c]
sub eax, ebp
sub eax, dword [esp + 0x94]
add edx, edi
imul edx, eax
mov eax, dword [esp + 0x14]
add edx, ebx
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
call fcn.00481320
mov ecx, dword [esp + 0x3c]
add ebx, 1
cmp ebx, dword [esp + 0x84]
mov dword [ecx], eax
jl 0x481152
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x28], edx
add dword [esp + 0x2c], ecx
mov eax, 1
add dword [esp + 0x24], eax
sub dword [esp + 0x30], eax
sub dword [esp + 0x84], eax
add ebp, eax
cmp ebp, edi
jl 0x481010
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x94]
mov esi, dword [esp + 0x80]
push 0xcc0020
push 0
push 0
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0xa0]
push ebp
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.00451ff0
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x481262
mov edx, dword [esi + 4]
push ebp
lea eax, [edi + 1]
push eax
push edx
call fcn.00452090
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x64]
call fcn.00452060
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
mov eax, dword [esi + 4]
push 0xcc0020
push ecx
push edx
push eax
push ebp
push edi
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.00451ff0
mov ebp, dword [esp + 0x88]
test ebp, ebp
je 0x4812ba
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
lea ecx, [edi + 1]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00452090
push ebp
lea ecx, [esp + 0x64]
call fcn.00452060
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x90]
mov eax, dword [esi + 4]
push 0xcc0020
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push edi
push ecx
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.00451ff0
mov edx, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x64]
call fcn.00452060
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.gdi32.dll_DeleteObject]
push ebx
call fcn.005655db
mov byte [esp + 0x7c], 0
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], vtable.CBitmap.0
call fcn.00424fa0
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
call fcn.0057762c
jmp 0x480e24
push ebx
call fcn.005655db
add esp, 4
lea ecx, [esp + 0x58]
jmp 0x480eb9