Function at 0x4111e0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c006
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebx
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0x41d400
mov ecx, 0x426c60
mov eax, dword [esp + 0x248]
push eax
push ebx
call fcn.00411610
cmp eax, ebx
jl 0x411266
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x426ce4], eax
mov dword [0x426ce8], ebx
call fcn.00412b3a
add esp, 4
cmp eax, ebx
je 0x411255
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
jmp 0x411257
xor eax, eax
cmp eax, ebx
mov dword [0x426ce8], eax
je 0x411266
mov dword [0x426cec], ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0x30]
push 0x104
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x13]
mov byte [esp + 0x14], dl
call fcn.00409580
lea eax, [esp + 0x30]
push eax
call fcn.0041255c
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
push 1
push esi
call fcn.00409450
test al, al
je 0x4112da
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push esi
push ecx
push edx
call fcn.00401b80
add esp, 0xc
lea ecx, [esp + 0x10]
push esi
call fcn.00409430
mov esi, dword [0x41d5a8]
push 0x4225f0
mov dword [esp + 0x244], ebx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x10]
push eax
push esi
push 0x4225f0
call fcn.004118f0
push eax
lea eax, [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004068b0
mov ecx, dword [0x41d5a8]
mov byte [esp + 0x240], 1
push ecx
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00409170
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x244], bl
call fcn.00409580
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x41134d
mov eax, 0x41d59c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [esp + 0x250]
push edi
call fcn.0041255c
add esp, 4
mov esi, eax
mov ecx, 0x426c48
push 1
push esi
call fcn.00409450
test al, al
je 0x4113a5
mov eax, dword [0x426c4c]
cmp esi, ebx
mov ecx, edi
jbe 0x411395
push ebp
mov edx, esi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x411385
pop ebp
mov edx, dword [0x426c4c]
mov dword [0x426c50], esi
mov word [edx + esi*2], bx
call fcn.00410f90
mov eax, dword [esp + 0x254]
push eax
push edi
call fcn.00410970
mov ecx, dword [0x426c30]
add esp, 8
add ecx, 0x1c
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x426cec]
cmp ecx, ebx
je 0x4113f8
cmp dword [ecx + 4], ebx
jle 0x4113ed
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x426cec]
cmp ecx, ebx
je 0x4113f8
push 1
call fcn.00411820
mov ecx, dword [0x426c30]
mov dword [0x426cec], ebx
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x426ce8]
cmp esi, ebx
je 0x411428
mov ecx, esi
call fcn.004118b0
push esi
call fcn.00411f90
add esp, 4
push 0x426c60
call fcn.004116e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
pop esi
cmp ecx, ebx
je 0x41145f
mov al, byte [ecx - 1]
cmp al, bl
je 0x411453
cmp al, 0xff
je 0x411453
dec al
mov byte [ecx - 1], al
jmp 0x41145f
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret 0x10