Function at 0x51b970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x51bbb3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call fcn.004ee5f8
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.0051d7fc
mov edi, eax
push 0xcc0020
mov eax, dword [ebp - 0x1c]
add eax, edi
push eax
add edi, dword [ebp - 0x20]
push edi
mov eax, dword [ebp + 0xc]
call fcn.00429244
call fcn.00424a50
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00429244
call fcn.00424a50
push eax
call sub.gdi32.dll_BitBlt
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.0051cbc8
mov edi, eax
mov edx, esi
mov eax, ebx
call fcn.0051ca2c
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
sub ecx, edi
xor edx, edx
xor eax, eax
call fcn.004071b0
cmp byte [ebp - 9], 0
jne 0x51ba47
test edi, edi
jle 0x51ba47
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, edi
call fcn.00407210
mov eax, dword [ebx + 0x40]
mov edi, dword [eax + 0x7ac8]
mov edx, edi
mov eax, dword [ebx + 0x40]
call fcn.005262b4
test al, al
je 0x51babb
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
call fcn.004071cc
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x60
mov eax, dword [ebx + 0x40]
call fcn.0052a90c
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x5c]
push eax
mov eax, ebx
call fcn.0051d7fc
inc eax
push eax
mov eax, ebx
call fcn.0051d7fc
mov edx, eax
inc edx
mov eax, dword [ebp + 0xc]
pop ecx
call fcn.005178bc
lea edx, [ebp - 0x5c]
mov cl, 1
mov eax, edi
call fcn.004e6288
push 0
push 1
mov eax, dword [ebp - 0x10]
call fcn.00429244
mov edx, eax
mov ecx, esi
mov eax, ebx
call fcn.0051b1ac
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x30]
call fcn.00404fa8
mov ecx, eax
sub ecx, 2
mov edx, 2
mov eax, dword [esi + 0x30]
call fcn.00405208
mov esi, 0x100015
mov eax, ebx
call fcn.0051d800
neg eax
sub eax, 2
push eax
push 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebp - 0x10]
call fcn.00429244
mov eax, dword [eax + 0xc]
call fcn.00423910
push eax
mov eax, dword [ebp - 0x10]
call fcn.00429244
call fcn.00424a50
push eax
call sub.gdi32.dll_SelectObject
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00429244
push eax
mov eax, dword [ebp - 8]
call fcn.004051a8
mov edx, eax
mov cl, 1
pop eax
call fcn.004e9548
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00429244
call fcn.00424a50
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00424a50
push eax
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x10]
call fcn.0040f078
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51bbba
lea eax, [ebp - 8]
call fcn.00404ce8
ret