Function at 0x40fb50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466bc4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20bc
call sub.ntdll.dll__chkstk
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x20b8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x20d0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
add esi, 0x24c
call fcn.00418860
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.00411160
mov edi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
test eax, eax
jne 0x40fc32
mov eax, 1
test byte [0x4f1904], al
jne 0x40fc00
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x120
mov ecx, str..SelvolDlg.cpp
add esi, 8
call fcn.0040eb80
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_pDiskMgr_is_a_NULL.
push 0x4f18dc
call eax
add esp, 0xc
jmp 0x410213
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
mov ecx, edi
call eax
mov edi, eax
test edi, edi
mov dword [esp + 0x58], edi
jne 0x40fc76
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x126
mov ecx, str..SelvolDlg.cpp
add esi, 8
call fcn.0040eb80
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_pDynVol_is_a_NULL.
push edi
call ecx
add esp, 0xc
jmp 0x410213
mov ecx, dword [esi + 0xb4]
test ecx, ecx
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x30], 3
jne 0x40fc94
xor eax, eax
jmp 0x40fc9f
mov eax, dword [esi + 0xb8]
sub eax, ecx
sar eax, 2
lea edx, [esp + 0x2c]
push edx
push eax
push esi
call fcn.00418070
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], ebx
je 0x4101e8
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
mov ecx, edi
call edx
mov esi, eax
cmp dword [esi + 0x8c], 1
jne 0x40fd05
cmp word [esi + 4], 0x2a
jne 0x40fd05
lea eax, [esi + 0x4a0]
lea edx, [eax + 2]
jmp 0x40fcf0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fcf0
sub eax, edx
sar eax, 1
je 0x4101d7
mov eax, dword [esi]
mov edi, dword [esp + 0x10]
mov edx, dword [edi + 0x300]
mov dword [esp + 0x38], eax
lea eax, [edi + 0x24c]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x2c], 0x1a
mov dword [esp + 0x30], ebx
jne 0x40fd33
mov dword [esp + 0x14], ebx
jmp 0x40fd42
mov ecx, dword [eax + 0xb8]
sub ecx, edx
sar ecx, 2
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00418070
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x100c
lea eax, [esp + 0x78]
push ebx
push eax
mov dword [esp + 0x20e4], ebx
call sub.ntdll.dll_memset
movzx edx, word [esi + 4]
add esp, 0xc
lea ecx, [esi + 6]
push ecx
push edx
lea eax, [esp + 0x20]
push str._c:__s
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x10
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_2461]
lea edx, [esp + 0x78]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x40fda0
lea ecx, [esp + 0x74]
lea eax, [edi + 0x24c]
mov edi, dword [esp + 0x14]
push ecx
push eax
xor ebx, ebx
mov eax, edi
call fcn.00418290
push 0x3e
lea edx, [esp + 0x108a]
push ebx
push edx
mov word [esp + 0x1090], bx
call sub.ntdll.dll_memset
mov eax, dword [esi + 0x88]
add esp, 0xc
cmp eax, 1
jne 0x40fe1c
xor eax, eax
jmp 0x40fe00
movzx ecx, word [eax + 0x469f9c]
mov word [esp + eax + 0x1084], cx
add eax, 2
cmp cx, bx
jne 0x40fe00
jmp 0x40fee0
cmp eax, ebx
jne 0x40fe4c
xor eax, eax
jmp 0x40fe30
movzx ecx, word [eax + 0x469f84]
mov word [esp + eax + 0x1084], cx
add eax, 2
cmp cx, bx
jne 0x40fe30
jmp 0x40fee0
cmp eax, 3
jne 0x40fe79
xor eax, eax
jmp 0x40fe60
movzx ecx, word [eax + 0x46c054]
mov word [esp + eax + 0x1084], cx
add eax, 2
cmp cx, bx
jne 0x40fe60
jmp 0x40fee0
push 0x468b68
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x20d8], 1
call fcn.0041e980
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push str.0422
call eax
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1084]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x40fec0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x20d8], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x100c
lea ecx, [esp + 0x78]
push ebx
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x40ff00
movzx ecx, word [esp + eax + 0x1084]
mov word [esp + eax + 0x78], cx
add eax, 2
cmp cx, bx
jne 0x40ff00
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x74]
add eax, 0x24c
push edx
push eax
mov ebx, 1
mov eax, edi
call fcn.00418290
test byte [0x4f190c], bl
jne 0x40ff48
or dword [0x4f190c], ebx
mov dword [0x4f1908], 0x4db424
lea eax, [esi + 0x90]
push 0x80000000
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [0x4f1908]
mov edx, dword [eax + 0x64]
mov ecx, 0x4f1908
call edx
test byte [0x4f18e8], bl
mov edi, eax
jne 0x40ff81
or dword [0x4f18e8], ebx
mov dword [0x4f18e4], 0x4db4c0
lea eax, [esp + 0x5c]
push eax
mov eax, dword [0x4f18e4]
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x74]
push edx
mov edx, dword [eax]
push edi
mov ecx, 0x4f18e4
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, ecx
sub edx, dword [esp + 0x5c]
mov esi, eax
sbb esi, dword [esp + 0x60]
shrd ecx, eax, 9
shrd edx, esi, 9
shr eax, 9
push edi
mov dword [esp + 0x68], edx
shr esi, 9
mov dword [esp + 0x50], ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x468b68
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov byte [esp + 0x20d8], 2
test byte [0x4f321c], 1
jne 0x41000b
or dword [0x4f321c], 1
call fcn.00429bf0
push 0x467b40
call fcn.00462d9a
add esp, 4
mov eax, dword [0x4f16b0]
mov edx, dword [eax]
push str.0422
mov ecx, 0x4f16b0
call edx
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x1088]
push ecx
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x410073
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [esp + 0x64], esi
call fcn.004103e0
mov ebx, edx
test ebx, ebx
mov edi, eax
jg 0x410077
jl 0x410060
test edi, edi
jae 0x410077
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
shrd eax, ebx, 9
mov dword [esp + 0x4c], eax
shr ebx, 9
mov edi, dword [esp + 0x4c]
push 0x100c
lea edx, [esp + 0x78]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
push 0xffe
lea eax, [esp + 0x10ca]
push 0
push eax
mov word [esp + 0x10d0], 0
call sub.ntdll.dll_memset
add esp, 0xc
push 0
push 0x200
push ebx
push edi
call sub.ntdll.dll__allmul
push edx
push eax
call fcn.00411200
add esp, 8
lea edx, [esp + 0x10c4]
jmp 0x4100d0
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
test cx, cx
jne 0x4100d0
xor eax, eax
jmp 0x4100f0
movzx ecx, word [esp + eax + 0x10c4]
mov word [esp + eax + 0x78], cx
add eax, 2
test cx, cx
jne 0x4100f0
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x74]
add eax, 0x24c
push ecx
push eax
mov ebx, 2
mov eax, edi
call fcn.00418290
push 0x100c
lea edx, [esp + 0x78]
push 0
push edx
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x70]
add esp, 0xc
push 0
push 0x200
push esi
push eax
call sub.ntdll.dll__allmul
push edx
push eax
call fcn.00411200
add esp, 8
lea edx, [esp + 0x10c4]
jmp 0x410160
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, ebx
test cx, cx
jne 0x410160
xor eax, eax
jmp 0x410180
movzx ecx, word [esp + eax + 0x10c4]
mov word [esp + eax + 0x78], cx
add eax, 2
test cx, cx
jne 0x410180
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x74]
add eax, 0x24c
push ecx
push eax
mov ebx, 3
mov eax, edi
call fcn.00418290
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20d8], 0xffffffff
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x58]
add ebx, 1
cmp ebx, dword [esp + 0x48]
mov dword [esp + 0x24], ebx
jne 0x40fcc6
mov ebx, dword [esp + 0x10]
lea edi, [ebx + 0x24c]
mov eax, edi
call fcn.0041d010
mov edx, dword [ebx + 0x26c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
call fcn.00418910
mov ecx, dword [esp + 0x20d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20b8]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret