Function at 0x402e56
Capabilities:
Set current directory

Disassembly:
push 0x30c
mov eax, 0x436097
call fcn.004226b6
mov ebx, ecx
lea eax, [ebp - 0x268]
push eax
call fcn.0040336e
xor edi, edi
lea edx, [ebx + 0x174]
mov dword [ebp - 4], edi
mov esi, dword [eax]
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x264], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x26c], eax
cmp eax, ecx
je 0x402ed3
cmp dword [ecx + 0xc], edi
jl 0x402ec8
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x402ec8
mov ecx, dword [ebp - 0x26c]
call fcn.00404f5e
mov ecx, dword [ebp - 0x264]
mov esi, eax
call fcn.00402471
lea eax, [esi + 0x10]
lea esi, [ebx + 0x174]
mov dword [esi], eax
jmp 0x402ed9
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004026cf
lea esi, [ebx + 0x174]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov edx, esi
lea ecx, [ebp - 0x26c]
call fcn.00407369
mov dword [ebp - 4], 1
lea edx, [ebx + 0x17c]
mov esi, dword [eax]
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x264], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x268], eax
cmp eax, ecx
je 0x402f58
cmp dword [ecx + 0xc], edi
jl 0x402f4d
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x402f4d
mov ecx, dword [ebp - 0x268]
call fcn.00404f5e
mov ecx, dword [ebp - 0x264]
mov esi, eax
call fcn.00402471
lea eax, [esi + 0x10]
mov dword [ebx + 0x17c], eax
jmp 0x402f58
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.004026cf
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.00402471
mov edx, dword [ebx + 0x17c]
lea esi, [ebx + 0x178]
mov ecx, dword [esi]
sub ecx, 0x10
mov dword [ebp - 0x264], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x268], eax
cmp eax, ecx
je 0x402fc9
cmp dword [ecx + 0xc], edi
jl 0x402fbe
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x402fbe
mov ecx, dword [ebp - 0x268]
call fcn.00404f5e
mov ecx, dword [ebp - 0x264]
mov esi, eax
call fcn.00402471
lea eax, [esi + 0x10]
lea esi, [ebx + 0x178]
mov dword [esi], eax
jmp 0x402fc9
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.004026cf
mov ecx, esi
call fcn.00407130
lea eax, [ebp - 0x268]
push eax
call fcn.004033d1
mov dword [ebp - 4], 2
mov ecx, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00404e09
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.00402471
push str..ini
call fcn.00425b9b
pop ecx
push eax
push str..ini
mov ecx, esi
call fcn.00404e09
lea eax, [ebp - 0x260]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x284], 0x443514
mov dword [ebp - 0x280], eax
mov dword [ebp - 4], 3
cmp eax, 0xffffffff
je 0x4031dc
mov dword [ebp - 0x27c], 0x445848
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], edi
mov byte [ebp - 4], 4
push dword [ebp - 0x240]
push ecx
push esi
lea ecx, [ebp - 0x27c]
call fcn.0040c317
push ecx
lea ecx, [ebp - 0x318]
call fcn.00408570
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x318]
call fcn.00408c90
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
call fcn.00403b50
lea eax, [ebp - 0x27c]
push eax
call fcn.00403f16
lea ecx, [ebp - 0x318]
call fcn.00408924
test al, al
mov byte [ebx + 5], al
lea eax, [ebx + 0x174]
push eax
lea ecx, [ebx + 8]
sete byte [0x44e8d0]
call fcn.0040a11d
lea ecx, [ebp - 0x318]
call fcn.00408b40
mov ecx, dword [ebx + 0x74]
sub ecx, 0x10
mov dword [ebp - 0x264], ecx
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x268], eax
cmp eax, ecx
je 0x403141
cmp dword [ecx + 0xc], edi
jl 0x403135
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x403135
mov ecx, dword [ebp - 0x268]
call fcn.00404f5e
mov ecx, dword [ebp - 0x264]
mov esi, eax
call fcn.00402471
lea eax, [esi + 0x10]
mov dword [ebx + 0x74], eax
jmp 0x403141
push dword [edx - 0xc]
lea ecx, [ebx + 0x74]
push edx
call fcn.004026cf
push 3
pop eax
push ecx
push edi
lea esi, [ebx + 0x108]
mov byte [ebx + 0xc8], 1
mov dword [ebx + 0x98], eax
mov ecx, esi
mov dword [ebx + 0x4c], edi
or dword [ebx + 0x4c], eax
push 0xdc
call fcn.0040bba9
lea edi, [ebx + 0x174]
mov ecx, esi
push edi
call fcn.0040ba3a
mov edx, edi
lea ecx, [ebp - 0x264]
call fcn.00407369
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402471
call fcn.00404168
test eax, eax
je 0x4031aa
xor edi, edi
inc edi
jmp 0x4031bc
lea eax, [ebp - 0x318]
mov ecx, ebx
push eax
call fcn.00403625
mov edi, eax
mov dword [ebx], edi
lea ecx, [ebp - 0x318]
call fcn.004031f3
lea ecx, [ebp - 0x278]
call fcn.00404a99
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x4031e3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
call fcn.00422671
ret