Function at 0x40b910
Capabilities:
Get common file path
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x439008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x27238b4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor esi, esi
or ebx, 0xffffffff
cmp eax, 0x8cf
jne 0x40b952
push 0
push str.lebifoxetu_fuhijucagabidukibupahovej_hinasasahuxutasozevaxumuye_tazadofebidaripucewizoxuyid
lea eax, [ebp - 0x804]
push eax
call edi
mov eax, dword [0x27238b4]
cmp esi, 0x180
jne 0x40b969
mov eax, dword [0x43adf4]
add eax, 0xa231
mov dword [0x27238b4], eax
cmp eax, 0x141
jne 0x40b980
mov dword [0x43b8e0], 0xec58acac
mov dword [0x43b8e4], ebx
inc esi
cmp esi, 0x12376ec
jl 0x40b936
mov edi, dword [sym.imp.KERNEL32.dll_AddAtomW]
xor esi, esi
cmp esi, 0x562d05
jne 0x40b9a5
mov ecx, dword [0x439fd8]
mov dword [0x27238b8], ecx
cmp eax, 0x3c
jne 0x40b9b3
push 0
call edi
mov eax, dword [0x27238b4]
inc esi
cmp esi, 0x5f6c74
jl 0x40b991
cmp eax, 0x7c
jne 0x40ba3f
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push 0
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea ecx, [ebp - 0x804]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp dword [0x27238b4], 0x2d
jne 0x40ba21
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0x437d70
push 0x43b858
call fcn.00401015
push 0
call fcn.004012a4
mov eax, dword [0x27238b4]
add esp, 0xc
cmp eax, 0x110a
jne 0x40bad8
xor eax, eax
push eax
mov dword [0x2723780], eax
mov dword [0x2723784], eax
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push str.yomawejuhu
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
push 0
push 0
lea edx, [ebp - 0x804]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov eax, dword [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push 0
push 0
call fcn.00401092
push 0
push 0
call fcn.00401092
push 0
call fcn.0040b4b4
push 0
push 0
call fcn.00401092
push 0
call fcn.00401121
push 0x437d80
push 0x43b858
call fcn.00401271
add esp, 0x28
push 0
call fcn.0040154f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x27235d4], eax
cmp dword [0x27238b4], esi
jbe 0x40bb4c
mov edi, dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
mov ebx, 0x19b0
jmp 0x40bb00
mov ecx, dword [0x27238b8]
mov dword [ebp - 0x808], ecx
mov eax, 0xa231
add dword [ebp - 0x808], eax
mov edx, dword [ebp - 0x808]
mov al, byte [edx + esi]
mov ecx, dword [0x27235d4]
mov byte [ecx + esi], al
cmp dword [0x27238b4], 0x5ab
jne 0x40bb43
push 0
push 0
push 0
call edi
mov dword [0x27235d8], ebx
inc esi
cmp esi, dword [0x27238b4]
jb 0x40bb00
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.0040b620
call fcn.0040b5f0
call fcn.0040b8d0
call fcn.0040b5e0
mov ebx, dword [ebp - 0x82c]
mov edi, dword [sym.imp.KERNEL32.dll_FindAtomA]
xor esi, esi
lea esp, [esp]
lea edx, [ebp - 0x404]
push edx
call edi
cmp esi, 0x408e
jle 0x40bb99
cmp ebx, 0xf5bed7
jne 0x40bba2
inc esi
cmp esi, 0x687ed2
jl 0x40bb80
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleDisplayMode]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x808], 0x1e4165
mov ebx, 0x8e46a6f0
lea ecx, [ecx]
cmp dword [0x27238b4], 0xcc1
jne 0x40bbd0
push 0
call esi
cmp dword [0x27238b4], 0x7c4
mov dword [0x27235dc], ebx
jne 0x40bbe4
call edi
sub dword [ebp - 0x808], 1
jne 0x40bbc0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401006
mov esp, ebp
pop ebp
ret