Function at 0x407330
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d73d1
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x521a70]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521a70]
xor eax, esp
push eax
lea eax, [esp + 0x500]
mov dword fs:[0], eax
mov edi, dword [esp + 0x510]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xbc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x407966
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
call fcn.0040d120
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x70], ebp
call fcn.0040d130
xor ebx, ebx
add esp, 8
cmp edi, ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
jne 0x407453
mov ecx, dword [esi + 0x214]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x4c]
push edx
push ebp
mov edi, eax
push ebx
mov dword [esp + 0x5c], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
xor ebx, ebx
cmp dword [esp + 0x514], ebx
je 0x40746e
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, esi
call edx
lea ecx, [esp + 0xa4]
call fcn.004893d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x298]
push eax
mov dword [esp + 0x50c], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
call fcn.00406f00
add esp, 4
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
mov dword [esp + 0x60], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0x384]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [esp + 0x14], eax
mov eax, ecx
cmp eax, ebx
mov dword [esp + 0x5c], eax
je 0x4077d3
mov ecx, dword [esp + 0x20]
fild dword [esi + 0x380]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
movzx ebp, byte [esi + 0x29d]
fidiv dword [esp + 0x14]
mov dword [esp + 0x30], ecx
movzx ecx, byte [esi + 0x29e]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov eax, 0x51eb851f
mov dword [esp + 0x9c], vtable.CGDIBrush.0
mov dword [esp + 0x14], 0
imul ecx, ecx, 0x57
imul ebp, ebp, 0x57
fstp qword [esp + 0x94]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
mov ch, al
mov eax, 0x51eb851f
imul ebp
movzx ebp, byte [esi + 0x29c]
sar edx, 5
imul ebp, ebp, 0x57
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, al
shl ecx, 8
or ecx, edx
mov eax, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_OleLoadPictureFile]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, eax
mov dword [esp + 0xa0], ebx
movzx ecx, byte [esi + 0x29e]
movzx ebp, byte [esi + 0x29d]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
mov ch, al
lea ebp, [ebp + ebp*4]
shl ebp, 4
mov eax, 0x51eb851f
imul ebp
movzx ebp, byte [esi + 0x29c]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
lea ebp, [ebp + ebp*4]
mov eax, 0x51eb851f
shl ecx, 8
shl ebp, 4
imul ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movzx edx, al
or ecx, edx
mov eax, ecx
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
mov dword [esp + 0x88], vtable.CGDIBrush.0
mov dword [esp + 0x20], 0
call dword [sym.imp.OLEAUT32.dll_OleLoadPictureFile]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esp + 0x80], eax
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
mov byte [esp + 0x514], 2
call dword [sym.imp.USER32.dll_FrameRect]
mov ebp, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
push ecx
call ebp
add dword [esp + 0x30], 1
lea edx, [esp + 0x28]
push edx
call fcn.0040d120
mov dword [esp + 0x64], eax
fild dword [esp + 0x64]
add esp, 4
fmul qword [esp + 0x94]
fiadd dword [esp + 0x28]
call fcn.004bad40
push 0xffffffffffffffff
mov dword [esp + 0x34], eax
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
lea eax, [edx + ecx]
cdq
sub eax, edx
mov edx, dword [esi]
mov edx, dword [edx + 0xd8]
sub esp, 0x10
mov ecx, esp
sar eax, 1
mov dword [ecx], ebp
mov dword [ecx + 4], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x80]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebp
push ebx
mov byte [esp + 0x50c], 0
call ebp
push 0x3ff
push 0
lea ecx, [esp + 0x105]
mov byte [esp + 0x104], 0
push ecx
call fcn.004ba350
fld qword [esp + 0xa0]
fmul qword [0x4e96d0]
add esp, 0xc
push 0x4e99d8
push 0x4e99d4
sub esp, 8
lea edx, [esp + 0x38]
fstp qword [esp]
push edx
call fcn.00414250
mov ebx, 0x10
add esp, 0x14
cmp dword [eax + 0x18], ebx
jb 0x40775d
mov eax, dword [eax + 4]
jmp 0x407760
add eax, 4
push eax
lea eax, [esp + 0x100]
push str._c__fgcolorFFFFFF__sha_000000__0__s___
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [esp + 0x40], ebx
jb 0x40778a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004b9684
add esp, 4
lea edx, [esp + 0xfc]
push edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00486140
push 0
push edi
lea ecx, [esp + 0xac]
call fcn.00484140
mov ecx, dword [esp + 0x74]
add eax, 8
sub dword [esp + 0x20], eax
sub ecx, eax
mov dword [esp + 0x6c], ecx
mov edx, dword [esi + 0x2d0]
mov eax, dword [edx + 0x28]
lea ebx, [esi + 0x2d0]
mov ecx, ebx
call eax
test eax, eax
je 0x407815
push 0
push 0xfffffffffffffffc
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push edi
mov ecx, ebx
call edx
jmp 0x4078b5
mov eax, dword [esi + 0x328]
mov edx, dword [eax + 0x24]
lea ebx, [esi + 0x328]
mov ecx, ebx
call edx
push 0x4e99a8
push eax
call fcn.004ba9a4
add esp, 8
test eax, eax
je 0x4078b5
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x44]
push 0
push edi
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x24]
mov ebx, eax
mov eax, dword [esp + 0x1c]
add eax, ecx
cdq
sub eax, edx
mov ebp, eax
push 0x10
add ebx, 8
sar ebp, 1
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ebp
push edx
lea ecx, [ebx + eax]
push ecx
push edi
call fcn.004046c0
add esp, 0x14
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
add ebp, 1
push ebp
push edx
add ebx, eax
push ebx
push edi
call fcn.004046c0
add esp, 0x14
cmp dword [esp + 0x5c], 0
je 0x4078d6
push 1
push 0
push 1
push 0
lea ecx, [esp + 0x7c]
push ecx
push edi
lea ecx, [esp + 0xbc]
call fcn.00483550
mov edx, dword [esp + 0x64]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esp + 0x58]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebp
lea ecx, [esp + 0xa4]
mov dword [esp + 0x508], 0xffffffff
call fcn.00485a70
mov ebx, dword [esp + 0x54]
test ebx, ebx
je 0x407966
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x88]
push 0xcc0020
push 0
push 0
push edi
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x50]
push edx
push edi
call ebp
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esi + 0x214]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x500]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004b9963
add esp, 0x4f8
ret 8