Function at 0x407730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40ee2a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x415284]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x18], 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 sub.MFC80.DLL_Ordinal_502
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
mov dword [esp + 0x84], 0
call sub.MFC80.DLL_Ordinal_5641
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 sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
add eax, 1
push eax
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push ecx
push edx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4123
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push edx
push eax
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
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 sub.MFC80.DLL_Ordinal_2264
push 0
push 1
push 0
lea ecx, [esp + 0x30]
call sub.MFC80.DLL_Ordinal_502
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov byte [esp + 0x84], 1
call sub.MFC80.DLL_Ordinal_5641
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 sub.MFC80.DLL_Ordinal_4123
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add edx, 1
push edx
push eax
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
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 sub.MFC80.DLL_Ordinal_4123
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
push ecx
add edx, 1
push edx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_4001
push ebx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_5641
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x30]
test eax, eax
jle 0x407b33
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 + 0x14]
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 + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x114]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_2264
cmp dword [ebx + 0x38], 0
je 0x407b33
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea eax, [ebx + 0x34]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 3
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_3934]
test al, al
je 0x4079ba
mov ecx, dword [ebx + 0x30]
push ecx
push str._d__
lea edx, [esp + 0x18]
push edx
jmp 0x4079ce
mov eax, dword [ebx + 0x30]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0xc
push 1
mov ecx, edi
call sub.MFC80.DLL_Ordinal_5731
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
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 ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgn]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
mov byte [esp + 0x90], 4
call esi
push eax
lea ecx, [esp + 0x20]
call sub.MFC80.DLL_Ordinal_1280
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_5634
mov ecx, dword [ebp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
mov ecx, edi
call edx
mov ebx, dword [edi]
push 0x25
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [ebx + 0x70]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call sub.MFC80.DLL_Ordinal_1934
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 esi
push eax
lea ecx, [esp + 0x20]
call sub.MFC80.DLL_Ordinal_1280
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call sub.MFC80.DLL_Ordinal_5634
mov eax, dword [ebp + 0x14]
mov edx, dword [edi]
push eax
mov ecx, edi
mov edx, dword [edx + 0x38]
call edx
mov esi, dword [edi]
push 0x25
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov edx, dword [esi + 0x70]
push eax
mov ecx, edi
call edx
lea ecx, [esp + 0x1c]
call sub.MFC80.DLL_Ordinal_1934
push 0
mov ecx, edi
call sub.MFC80.DLL_Ordinal_5634
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 3
mov dword [esp + 0x1c], vtable.CGdiObject.0
call sub.MFC80.DLL_Ordinal_1934
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 0
mov dword [esp + 0x24], esi
call sub.MFC80.DLL_Ordinal_1934
lea ecx, [esp + 0x2c]
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x2c], esi
call sub.MFC80.DLL_Ordinal_1934
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