Function at 0x47f630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5818f8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [ebp + 0x1c]
add dword [esi + 0xc], 0xffffffff
add dword [esi], 1
add dword [esi + 8], 0xfffffffe
mov eax, dword [ecx + 0x108]
push eax
push 1
push 0
lea ecx, [esp + 0x38]
call fcn.005210af
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x84], 0
call fcn.00520cea
mov edx, dword [esi + 0xc]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.005204ac
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
add eax, 1
push eax
mov ecx, edi
call fcn.0051fe38
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.005204ac
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, edi
call fcn.0051fe38
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call fcn.005204ac
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call fcn.0051fe38
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.005204ac
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, edi
call fcn.0051fe38
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x70], edx
add eax, 1
add ecx, 1
mov dword [esp + 0x64], eax
push 0xe0e0e0
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], ecx
push eax
mov ecx, edi
call fcn.0053351b
push 0
push 1
push 0
lea ecx, [esp + 0x30]
call fcn.005210af
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov byte [esp + 0x84], 1
call fcn.00520cea
mov edx, dword [esi + 4]
mov eax, dword [esi]
add edx, 1
push edx
add eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.005204ac
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, 1
push edx
push eax
mov ecx, edi
call fcn.0051fe38
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 1
push ecx
add edx, 1
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.005204ac
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push ecx
add edx, 1
push edx
mov ecx, edi
call fcn.0051fe38
push ebx
mov ecx, edi
call fcn.00520cea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
cmp dword [edx + ecx*4 + 0x30], 0
lea eax, [edx + ecx*4]
mov dword [esp + 0x18], eax
jle 0x47fa85
mov ebx, dword [esi + 0xc]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], eax
add ecx, 2
sub eax, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x18]
imul eax, dword [ebx + 0x30]
add edx, 2
mov dword [esp + 0x38], edx
mov dword [esp + 0x48], edx
mov edx, eax
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
add eax, 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x114]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.0053351b
cmp dword [ebx + 0x38], 0
je 0x47fa85
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47f88c
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 2
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47f8be
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [ebx + 0x34]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 3
call fcn.004025f0
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
jne 0x47f8fd
mov edx, dword [ebx + 0x30]
push edx
push str._d__
lea eax, [esp + 0x1c]
push eax
jmp 0x47f907
mov ecx, dword [ebx + 0x30]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0041b070
add esp, 0xc
push 1
mov ecx, edi
call fcn.0051fb0d
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call dword [sym.imp.USER32.dll_InflateRect]
add dword [esp + 0x58], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CRgn.0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgn]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
mov byte [esp + 0x90], 4
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00520b97
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0052046c
mov edx, dword [edi]
mov eax, dword [ebp + 0x18]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x25
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call fcn.00520bea
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00520b97
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.0052046c
mov edx, dword [edi]
mov eax, dword [ebp + 0x14]
mov edx, dword [edx + 0x30]
push eax
mov ecx, edi
call edx
mov eax, dword [esi - 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x68]
push 0x25
lea ecx, [esp + 0x58]
push ecx
push eax
push esi
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call fcn.00520bea
push 0
mov ecx, edi
call fcn.0052046c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
mov dword [esp + 0x1c], vtable.CRgn.0
call fcn.00421bd0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x80], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fa61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0x80], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47fa85
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov esi, vtable.CPen.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
mov dword [esp + 0x24], esi
call fcn.00421bd0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x2c], esi
call fcn.00421bd0
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c