Function at 0x4393a0
Capabilities:
Get file system object information
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a7b84
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push ebp
push esi
lea eax, [esp + 0x78]
push edi
mov ebp, ecx
push eax
call fcn.0049c4d4
mov ecx, dword [0x4deb94]
call fcn.00428b60
mov ecx, dword [eax + 4]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push 5
push ecx
call esi
push eax
call fcn.0049061d
mov edx, dword [eax + 4]
push 8
push edx
call esi
push eax
call fcn.0049061d
mov ebx, eax
push 4
mov dword [esp + 0x20], ebx
mov eax, dword [ebx + 4]
push eax
call fcn.0046d9e0
mov ecx, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 8
push 0x400
push 4
push ecx
call esi
test eax, eax
je 0x439434
mov edx, dword [ebx + 4]
push 0x400
push 4
push edx
call esi
test eax, eax
jne 0x439423
mov eax, dword [ebp + 0x1130]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x418
push eax
call edi
test eax, eax
jle 0x439467
mov esi, eax
mov ecx, dword [ebp + 0x1130]
push 0
push 0
push 0x416
push ecx
call edi
dec esi
jne 0x439452
mov eax, dword [ebp + 0xea0]
lea ecx, [ebp + 0x1114]
push eax
push 0
call fcn.0049de37
mov eax, dword [0x4d8094]
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x33c], esi
mov edx, dword [ebp + 0xea0]
mov byte [esp + 0x33c], 1
dec edx
js 0x439a76
mov dword [esp + 0x18], 0xe00
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0xe9c]
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + eax]
test edi, edi
mov dword [esp + 0x28], edi
je 0x439a46
lea edx, [esp + 0x48]
push 2
lea ecx, [edi + 8]
push edx
call fcn.00487a7f
mov eax, dword [eax]
mov esi, 0x4d4544
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x439509
test cl, cl
je 0x439505
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x439509
add eax, 2
add esi, 2
test cl, cl
jne 0x4394e1
xor eax, eax
jmp 0x43950e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x48]
sete bl
call fcn.0048f641
test bl, bl
je 0x43954d
mov eax, dword [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.00435170
mov ecx, dword [esp + 0x18]
push 0
push 1
add ecx, 0xfffff200
push 0
push ecx
lea ecx, [ebp + 0x1114]
call fcn.00495dfe
jmp 0x439a42
push ecx
lea eax, [edi + 8]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0048f3b6
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push esi
push 0
push ebx
mov ecx, ebp
call fcn.00435000
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x439584
mov edx, dword [ebx + 4]
push 8
push esi
push edx
call dword [sym.imp.USER32.dll_CheckMenuItem]
add edi, 4
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x3c], edi
call fcn.0048f77a
push 1
push 0x22
lea ecx, [esp + 0x2c]
call fcn.00487639
lea eax, [esp + 0x4c]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 2
call fcn.00487a7f
mov esi, dword [esp + 0x24]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4395e8
test cl, cl
je 0x4395e4
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4395e8
add eax, 2
add esi, 2
test cl, cl
jne 0x4395c0
xor eax, eax
jmp 0x4395ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x4c]
sete bl
call fcn.0048f641
lea ecx, [esp + 0x24]
mov byte [esp + 0x33c], 1
call fcn.0048f641
test bl, bl
je 0x439643
lea eax, [esp + 0x5c]
push 1
push eax
lea ecx, [esp + 0x18]
call fcn.0048794a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 3
call fcn.0048f77a
lea ecx, [esp + 0x5c]
mov byte [esp + 0x33c], 1
call fcn.0048f641
push 1
push 0x22
lea ecx, [esp + 0x34]
call fcn.00487639
lea ecx, [esp + 0x64]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 4
call fcn.00487a03
mov esi, dword [esp + 0x2c]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x439696
test cl, cl
je 0x439692
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x439696
add eax, 2
add esi, 2
test cl, cl
jne 0x43966e
xor eax, eax
jmp 0x43969b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x64]
sete bl
call fcn.0048f641
lea ecx, [esp + 0x2c]
mov byte [esp + 0x33c], 1
call fcn.0048f641
test bl, bl
je 0x4396f8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00487a7f
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 5
call fcn.0048f77a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x33c], 1
call fcn.0048f641
mov eax, dword [esp + 0x10]
cmp byte [eax], 0x25
jne 0x439726
lea edx, [esp + 0x230]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x230]
lea ecx, [esp + 0x10]
push eax
call fcn.0048f7ca
lea ecx, [esp + 0x54]
push 2
push ecx
lea ecx, [esp + 0x18]
call fcn.00487a7f
mov eax, dword [eax]
mov esi, 0x4d447c
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x439765
test cl, cl
je 0x439761
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x439765
add eax, 2
add esi, 2
test cl, cl
jne 0x43973d
xor eax, eax
jmp 0x43976a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x54]
sete bl
call fcn.0048f641
test bl, bl
je 0x4397e6
lea eax, [esp + 0x50]
push 2
push eax
lea ecx, [esp + 0x18]
call fcn.0048794a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 6
call fcn.0048f77a
lea ecx, [esp + 0x50]
mov byte [esp + 0x33c], 1
call fcn.0048f641
lea ecx, [esp + 0x10]
lea edx, [esp + 0x60]
push ecx
push 0x4decc0
push edx
call fcn.0048f870
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 7
call fcn.0048f77a
lea ecx, [esp + 0x60]
mov byte [esp + 0x33c], 1
call fcn.0048f641
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
xor edi, edi
call fcn.0048f3b6
call fcn.0040e7f0
add esp, 4
test eax, eax
je 0x439890
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov edi, 1
call fcn.0048f3b6
lea eax, [esp + 0x6c]
push eax
call fcn.0040ecf0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 8
call fcn.0048f77a
lea ecx, [esp + 0x68]
mov byte [esp + 0x33c], 1
call fcn.0048f641
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0048f3b6
lea eax, [esp + 0x5c]
push eax
call fcn.0040eae0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 9
call fcn.0048f77a
lea ecx, [esp + 0x58]
mov byte [esp + 0x33c], 1
call fcn.0048f641
push 1
push 0x5c
lea ecx, [esp + 0x3c]
call fcn.00487639
lea ecx, [esp + 0x40]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 0xa
call fcn.00487a03
mov esi, dword [esp + 0x34]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4398e3
test cl, cl
je 0x4398df
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4398e3
add eax, 2
add esi, 2
test cl, cl
jne 0x4398bb
xor eax, eax
jmp 0x4398e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x40]
setne bl
call fcn.0048f641
lea ecx, [esp + 0x34]
mov byte [esp + 0x33c], 1
call fcn.0048f641
test bl, bl
je 0x439919
push 0x4d441c
lea ecx, [esp + 0x14]
call fcn.0048fa1d
mov ecx, dword [esp + 0x10]
push 0x101
lea eax, [esp + 0xd4]
push 0x160
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x439953
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x439956
or esi, 0xffffffff
push esi
mov esi, dword [esp + 0x1c]
push 0
lea ebx, [ebp + 0x1114]
lea eax, [esi - 0xe00]
push esi
push eax
mov ecx, ebx
call fcn.00495dfe
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0048f77a
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4399c5
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push 0x4d67d4
push ecx
call fcn.0048f94a
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 0xb
call fcn.0048f77a
lea ecx, [esp + 0x44]
mov byte [esp + 0x33c], 1
call fcn.0048f641
test edi, edi
je 0x4399fc
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x439a18
push 0x4d47b0
lea ecx, [esp + 0x14]
call fcn.0048fa1d
push 0x4d43f4
push 0x4d47b4
lea ecx, [esp + 0x1c]
call fcn.00487796
lea eax, [esp + 0x14]
push eax
jmp 0x439a0f
push 0x4d47b0
lea ecx, [esp + 0x14]
call fcn.0048fa1d
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.0048fa59
mov edx, dword [ebp + 0x1130]
push 0
push 0
push 0x423
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.0048bd5a
mov ecx, dword [esp + 0x10]
push esi
push ebx
push ecx
mov ecx, eax
call fcn.00489449
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 0xea0]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
add eax, 0xfffff200
dec edx
cmp eax, edx
jle 0x4394b2
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov eax, dword [ebp + 0x1114]
lea ecx, [ebp + 0x1114]
lea edx, [esp + 0x6c]
push edx
push esi
call dword [eax + 0xe0]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x70]
sub eax, edx
mov dword [esp + 0x80], 0x50
cmp eax, 0x16
mov dword [esp + 0x84], 0x320
mov dword [esp + 0xb4], 0x80bf
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], 0x16
jl 0x439ad7
mov dword [esp + 0xa8], eax
mov eax, dword [ebp + 0x1130]
push esi
push esi
push 0x418
push eax
call edi
cmp eax, esi
jle 0x439b0d
mov edx, dword [ebp + 0x1130]
lea ecx, [esp + 0x6c]
dec eax
push ecx
push eax
push 0x41d
push edx
call edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc4], eax
jmp 0x439b18
mov dword [esp + 0xc4], 2
mov ecx, dword [ebp + 0xa10]
push esi
push 0x80bf
push 0x410
push ecx
call edi
lea edx, [esp + 0x80]
push edx
push eax
mov eax, dword [ebp + 0xa10]
push 0x406
push eax
call edi
push esi
push ebx
mov ecx, ebp
call fcn.00425180
lea ecx, [esp + 0x14]
mov byte [esp + 0x33c], 0
call fcn.0048f641
lea ecx, [esp + 0x10]
mov dword [esp + 0x33c], 0xffffffff
call fcn.0048f641
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x330
ret