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

Disassembly:
push 0xffffffffffffffff
push 0x52fb18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x589758]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
movzx eax, byte [ecx + 0xe4]
mov ebx, dword [esp + 0x70]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call fcn.0047a280
mov edi, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x5c], esi
cmp dword [edi - 0xc], esi
jne 0x47a7da
lea eax, [edi - 0x10]
jmp 0x47a9e9
lea ecx, [esp + 0x2c]
call fcn.004a6916
mov eax, dword [esp + 0x64]
mov byte [esp + 0x5c], 1
cmp eax, esi
jne 0x47a7f4
xor eax, eax
jmp 0x47a7f7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.004a705c
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], vtable.CBitmap.0
mov byte [esp + 0x5c], 2
call fcn.00497c4f
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x28]
call fcn.004a732e
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.004a73f2
mov ebx, dword [ebx + 0x5c]
mov edi, ebx
mov ebp, ebx
mov edx, ebx
and edi, 0x1000000
and edx, 0x20000000
and ebp, 0x2000000
cmp edi, esi
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
je 0x47a898
mov edx, dword [esi]
sub edx, dword [esi + 8]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x70]
push edx
push eax
push esi
call fcn.004794c0
mov edx, dword [esp + 0x18]
test ebp, ebp
je 0x47a8b2
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x74]
push eax
push esi
call fcn.004794f0
test edi, edi
jne 0x47a97b
test ebp, ebp
jne 0x47a97b
test edx, edx
je 0x47a900
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0xcc0020
push edx
mov edx, dword [esp + 0x48]
push edx
push ebp
push ebp
lea edx, [esp + 0x40]
push edx
mov edx, dword [esi + 0xc]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x8c]
call fcn.00414ef0
jmp 0x47a9a8
test bl, 2
je 0x47a90e
mov eax, dword [esi + 8]
sub eax, dword [esp + 0x40]
mov dword [esi], eax
test bl, 1
je 0x47a923
mov eax, dword [esi + 8]
sub eax, dword [esp + 0x40]
add eax, dword [esi]
cdq
sub eax, edx
sar eax, 1
mov dword [esi], eax
test bl, 8
je 0x47a932
mov ecx, dword [esi + 0xc]
sub ecx, dword [esp + 0x44]
mov dword [esi + 4], ecx
test bl, 4
je 0x47a949
mov eax, dword [esi + 0xc]
sub eax, dword [esp + 0x44]
add eax, dword [esi + 4]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x9c]
mov edi, dword [esp + 0x64]
push edx
push esi
mov ecx, edi
call fcn.004aab31
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push 0xc0c0c0
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0047a510
jmp 0x47a9a8
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov eax, dword [esi + 4]
mov esi, dword [esi]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x78]
push ecx
push eax
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47a9b3
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.004a73f2
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x24], vtable.CBitmap.0
call fcn.00404e40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 0
call fcn.004a70db
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [esp + 0x5c], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47aa06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10