Function at 0x40e070
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4723ac
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x205c
call sub.ntdll.dll__chkstk
mov eax, dword [0x4f8028]
xor eax, esp
mov dword [esp + 0x2058], eax
push ebx
push esi
push edi
mov eax, dword [0x4f8028]
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.0041a3c0
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.00411dc0
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 0x40e5c9
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 0x40e11f
xor eax, eax
jmp 0x40e12a
mov eax, dword [edi + 0xb8]
sub eax, ecx
sar eax, 2
lea ecx, [esp + 0x30]
push ecx
push eax
push edi
call fcn.00419b40
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 0x40e59e
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 0x40e58d
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 0x40e1a9
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.00419b40
mov ebx, 1
test byte [0x504e68], bl
mov dword [esp + 0x44], esi
jne 0x40e201
or dword [0x504e68], ebx
push 0x530
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
test eax, eax
je 0x40e1f5
push eax
call fcn.0043b7a0
mov ecx, eax
mov dword [0x504e64], ecx
jmp 0x40e207
xor eax, eax
mov ecx, eax
mov dword [0x504e64], ecx
jmp 0x40e207
mov ecx, dword [0x504e64]
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 0x40e241
jb 0x40e227
cmp eax, 0xffffffff
ja 0x40e241
mov eax, dword [edi]
mov edx, dword [eax + 0x44]
mov ecx, edi
call edx
test eax, eax
jne 0x40e241
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
test eax, eax
je 0x40e245
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 0x40e27b
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
mov ecx, esi
call edx
test eax, eax
je 0x40e27b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x38]
call eax
test al, al
jne 0x40e27b
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x14]
add esi, 0x448
lea ebx, [esp + 0x44]
call fcn.00434080
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 0x474c4c
je 0x40e367
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x477ae4
lea ecx, [esp + 0x24]
mov byte [esp + 0x207c], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x2078], 2
test byte [0x504e60], 1
jne 0x40e30e
or dword [0x504e60], 1
call fcn.0042a470
push 0x473340
call fcn.0046d920
add esp, 4
mov edx, dword [0x50350c]
mov eax, dword [edx]
push str.0239
mov ecx, 0x50350c
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]
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 0x40e409
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x477adc
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 [0x504e60], al
jne 0x40e3b5
or dword [0x504e60], eax
call fcn.0042a470
push 0x473340
call fcn.0046d920
add esp, 4
mov edx, dword [0x50350c]
mov eax, dword [edx]
push str.0239
mov ecx, 0x50350c
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]
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]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x40e424
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.00419df0
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.00411e60
add esp, 8
lea ecx, [esp + 0x1064]
lea esp, [esp]
movzx edx, word [eax]
mov word [ecx], dx
add eax, 2
add ecx, 2
test dx, dx
jne 0x40e4b0
xor eax, eax
jmp 0x40e4d0
movzx ecx, word [esp + eax + 0x1064]
mov word [esp + eax + 0x58], cx
add eax, 2
test cx, cx
jne 0x40e4d0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
add eax, 0x98
push ecx
push eax
mov ebx, 1
mov eax, esi
call fcn.00419df0
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.0040df20
push 0x100c
lea eax, [esp + 0x58]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x40e540
movzx ecx, word [esp + eax + 0x1064]
mov word [esp + eax + 0x58], cx
add eax, 2
test cx, cx
jne 0x40e540
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
add eax, 0x98
push ecx
push eax
mov ebx, 2
mov eax, esi
call fcn.00419df0
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 0x40e151
mov esi, dword [esp + 0x14]
lea edi, [esi + 0x98]
mov eax, edi
call fcn.0041a470
mov edx, dword [esi + 0xb8]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
call fcn.0041a5a0
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.0046d6fd
mov esp, ebp
pop ebp
ret