Function at 0x406d27
Capabilities:
Check os version
Get file system object information

Disassembly:
push ebp
sub esp, 0x160
lea ebp, [esp - 4]
mov eax, dword [0x4223a0]
xor eax, ebp
mov dword [ebp + 0x160], eax
push 0x50
mov eax, 0x418f48
call fcn.0040db0d
mov eax, dword [ebp + 0x17c]
mov edi, dword [ebp + 0x16c]
mov ebx, dword [ebp + 0x178]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x180]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x170]
mov esi, ecx
mov dword [esi + 0xe8], eax
mov eax, dword [ebp + 0x174]
mov dword [esi + 0xec], eax
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [eax], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406de9
mov dword [esi + 8], edi
call fcn.0040d21e
xor edi, edi
cmp ebx, edi
je 0x406e10
push edi
push edi
push edi
push 1
push ebx
mov ecx, esi
call fcn.00406568
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
push eax
call ebx
mov dword [esi + 0xdc], eax
cmp eax, edi
je 0x406de9
push edi
push 0x10
push 0x10
push 1
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00406568
push eax
call ebx
mov dword [esi + 0xe0], eax
cmp eax, edi
jne 0x406e28
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x160]
xor ecx, ebp
call fcn.0040dafe
add ebp, 0x164
leave
ret 0x20
push 0x7f00
push edi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0xe0], eax
mov dword [esi + 0xdc], eax
mov ecx, esi
call fcn.004065dd
mov eax, dword [ebp - 0x4c]
cmp eax, edi
je 0x406e57
mov ecx, eax
shr ecx, 0x10
test cx, cx
push eax
lea ecx, [esi + 0xb8]
jne 0x406e52
call fcn.004075bf
test eax, eax
jne 0x406e57
jmp 0x406de9
call fcn.00407679
push 0x4001
push 0x160
lea eax, [ebp]
push eax
push edi
push 0x41ac30
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [esi + 0x10], eax
cmp eax, edi
je 0x406de9
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x421580
push 0x421600
push 0x20
pop ebx
push ebx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_CreateCursor]
push 5
push eax
call edi
mov dword [esi + 0x14], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x421380
push 0x421400
push ebx
push ebx
push 0xf
push 0xf
push eax
call edi
mov dword [esi + 0x18], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x421480
push 0x421500
push ebx
push ebx
push 0xf
push 0xf
push eax
call edi
mov dword [esi + 0x1c], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_CreateIcon]
push 0x423398
push 0x421680
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x10c], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423418
push 0x421700
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x110], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423498
push 0x421780
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x114], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423518
push 0x421800
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x118], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423618
push 0x421900
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x11c], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423718
push 0x421a00
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x120], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423598
push 0x421880
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x124], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423698
push 0x421980
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x128], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423798
push 0x421a80
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x12c], eax
call fcn.00406cb5
mov eax, dword [eax + 8]
push 0x423818
push 0x421b00
push 1
push 1
push ebx
push ebx
push eax
call edi
mov dword [esi + 0x130], eax
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x14]
cmp dword [eax], ebx
je 0x406de9
inc ecx
add eax, 4
cmp ecx, 3
jl 0x407035
xor ecx, ecx
lea eax, [esi + 0x10c]
cmp dword [eax], ebx
je 0x406de9
inc ecx
add eax, 4
cmp ecx, 0xa
jl 0x40704e
push ebx
push 0xa
push 1
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi + 0x134], eax
cmp eax, ebx
je 0x406de9
lea eax, [esi + 0x10c]
mov dword [ebp - 0x10], ebx
mov edi, eax
push dword [edi]
push 0xffffffffffffffff
push dword [esi + 0x134]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
test eax, eax
jl 0x406de9
inc dword [ebp - 0x10]
add edi, 4
cmp dword [ebp - 0x10], 0xa
jl 0x407087
push 5
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
push ebx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ebx, dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0xdc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
mov edi, str.ClsWindowClass
push eax
mov dword [ebp - 0x40], 0x4046d0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x44], 0xb
call ebx
test ax, ax
je 0x406de9
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x20], str.ClsMDIChildClass
mov dword [ebp - 0x40], 0x40d4ad
call ebx
test ax, ax
jne 0x40713a
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_UnregisterClassA]
jmp 0x406de9
or dword [ebp - 0x44], 0x20000
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x20], str.ClsDSWindowClass
mov dword [ebp - 0x40], 0x4046d0
call ebx
test ax, ax
jne 0x407187
and dword [ebp - 0x44], 0xfffdffff
lea eax, [ebp - 0x48]
push eax
call ebx
test ax, ax
jne 0x407187
push dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_UnregisterClassA]
push edi
call esi
push dword [ebp - 0x14]
push str.ClsMDIChildClass
call esi
jmp 0x406de9
mov edi, dword [ebp - 0x18]
mov dword [esi + 0xe4], 1
test edi, edi
je 0x407224
and dword [ebp - 0x10], 0
cmp dword [ebp + 0x184], 0
jle 0x407224
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x14], eax
xor eax, eax
cmp dword [edi + 8], eax
jne 0x4071bd
mov dword [edi + 8], 0x4046d0
cmp dword [edi + 0x18], eax
jne 0x4071cb
mov ecx, dword [esi + 0xdc]
mov dword [edi + 0x18], ecx
cmp dword [edi + 0x2c], eax
jne 0x4071d9
mov eax, dword [esi + 0xdc]
mov dword [edi + 0x2c], eax
push edi
call ebx
test ax, ax
je 0x406de9
push 0xffffffffffffffff
push dword [edi + 0x28]
lea ecx, [ebp - 0x5c]
call fcn.004076f3
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [esi + 0xf0]
call fcn.00406994
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004073c3
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x30
cmp eax, dword [ebp + 0x184]
jl 0x4071a9
cmp dword [ebp + 0x188], 0
je 0x40723a
push dword [ebp + 0x188]
mov ecx, esi
call fcn.00406578
push 0x421cfc
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [esi + 0x104], eax
test eax, eax
je 0x406de9
push eax
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x108], eax
mov eax, ecx
jmp 0x406deb