Function at 0x40d5a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466cec
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x205c
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x2058], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x2070]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
add edi, 0x98
mov esi, edi
call fcn.00418860
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00411160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
test esi, esi
mov dword [esp + 0x4c], esi
je 0x40daf9
mov ecx, dword [edi + 0xb4]
or eax, 0xffffffff
test ecx, ecx
mov dword [esp + 0x30], 0xa
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jne 0x40d64f
xor eax, eax
jmp 0x40d65a
mov eax, dword [edi + 0xb8]
sub eax, ecx
sar eax, 2
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.00418070
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
xor ebx, ebx
test eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], ebx
je 0x40dace
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push ebx
mov ecx, esi
call eax
mov edi, eax
mov edx, dword [edi]
mov eax, dword [edx + 0x48]
mov ecx, edi
call eax
test eax, eax
je 0x40dabd
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
mov dword [esp + 0x30], 0x23
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x14c]
add eax, 0x98
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
je 0x40d6d9
mov ecx, dword [eax + 0xb8]
sub ecx, edx
sar ecx, 2
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
push eax
call fcn.00418070
mov ebx, 1
test byte [0x4f3224], bl
mov dword [esp + 0x44], esi
jne 0x40d731
or dword [0x4f3224], ebx
push 0x530
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
test eax, eax
je 0x40d725
push eax
call fcn.00439e00
mov ecx, eax
mov dword [0x4f3220], ecx
jmp 0x40d737
xor eax, eax
mov ecx, eax
mov dword [0x4f3220], ecx
jmp 0x40d737
mov ecx, dword [0x4f3220]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push esi
call edx
mov dword [esp + 0x48], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x1c]
mov ecx, edi
call edx
test edx, edx
ja 0x40d771
jb 0x40d757
cmp eax, 0xffffffff
ja 0x40d771
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov ecx, edi
call edx
test eax, eax
jne 0x40d771
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
test eax, eax
je 0x40d775
mov dword [esp + 0x48], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
cmp eax, ebx
ja 0x40d7ab
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
test eax, eax
je 0x40d7ab
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
test al, al
jne 0x40d7ab
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x14]
add esi, 0x448
lea ebx, [esp + 0x44]
call fcn.0042fba0
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
xor ebx, ebx
push 0x100c
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x2084], ebx
call sub.ntdll.dll_memset
add esp, 0xc
cmp dword [esp + 0x48], ebx
push 0x468b68
je 0x40d89a
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x46b8a4
lea ecx, [esp + 0x24]
mov byte [esp + 0x207c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x2078], 2
test byte [0x4f321c], 1
jne 0x40d83e
or dword [0x4f321c], 1
call fcn.00429bf0
push 0x467b40
call fcn.00462d9a
add esp, 4
mov edx, dword [0x4f16b0]
mov eax, dword [edx]
push str.0239
mov ecx, 0x4f16b0
call eax
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add edx, 1
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x28]
jmp 0x40d93f
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x46b89c
lea ecx, [esp + 0x30]
mov byte [esp + 0x207c], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov eax, 1
mov byte [esp + 0x2078], 4
test byte [0x4f321c], al
jne 0x40d8e8
or dword [0x4f321c], eax
call fcn.00429bf0
push 0x467b40
call fcn.00462d9a
add esp, 4
mov edx, dword [0x4f16b0]
mov eax, dword [edx]
push str.0239
mov ecx, 0x4f16b0
call eax
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add edx, 1
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
mov byte [esp + 0x2078], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
lea edx, [esp + 0x58]
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x40d960
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x54]
add eax, 0x98
push edx
push eax
xor ebx, ebx
mov eax, esi
call fcn.00418290
push 0x100c
lea eax, [esp + 0x58]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0xffe
lea ecx, [esp + 0x106a]
push ebx
push ecx
mov word [esp + 0x1070], bx
call sub.ntdll.dll_memset
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
add esp, 0xc
mov ecx, edi
call eax
push ebx
push 0x200
push edx
push eax
call sub.ntdll.dll__allmul
push edx
push eax
call fcn.00411200
add esp, 8
lea ecx, [esp + 0x1064]
movzx edx, word [eax]
mov word [ecx], dx
add eax, 2
add ecx, 2
test dx, dx
jne 0x40d9e5
xor eax, eax
jmp 0x40da00
movzx ecx, word [esp + eax + 0x1064]
mov word [esp + eax + 0x58], cx
add eax, 2
test cx, cx
jne 0x40da00
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
add eax, 0x98
push ecx
push eax
mov ebx, 1
mov eax, esi
call fcn.00418290
push 0x1000
lea edx, [esp + 0x1068]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, edi
lea ebx, [esp + 0x1064]
call fcn.0040d450
push 0x100c
lea eax, [esp + 0x58]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x40da70
movzx ecx, word [esp + eax + 0x1064]
mov word [esp + eax + 0x58], cx
add eax, 2
test cx, cx
jne 0x40da70
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
add eax, 0x98
push ecx
push eax
mov ebx, 2
mov eax, esi
call fcn.00418290
lea ecx, [esp + 0x18]
mov dword [esp + 0x2078], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x40]
add ebx, 1
cmp ebx, dword [esp + 0x50]
mov dword [esp + 0x40], ebx
jne 0x40d681
mov esi, dword [esp + 0x14]
lea edi, [esi + 0x98]
mov eax, edi
call fcn.0041d010
mov edx, dword [esi + 0xb8]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
call fcn.00418910
mov ecx, dword [esp + 0x2070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2058]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret