Function at 0x580028
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4f
push 0
push 0
dec ecx
jne 0x580030
push ecx
push ebx
push esi
push edi
lea ebx, [ebp - 0x1cc]
xor eax, eax
push ebp
push 0x5806c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x580691
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5c1278]
mov edx, dword [edx]
lea eax, [ebp - 0x1d0]
mov ecx, 0x5806d8
call fcn.00405c48
mov eax, dword [ebp - 0x1d0]
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov edx, 0x5806ec
mov eax, ebx
call fcn.00403348
mov eax, ebx
call fcn.004030d8
call fcn.00402ca4
mov edx, 0x580704
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1d8]
mov eax, dword [0x5c1acc]
movzx eax, word [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
mov edx, 0x580714
call fcn.004054e8
mov edx, dword [ebp - 0x1d4]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1e0]
mov eax, dword [0x5c1380]
mov al, byte [eax]
call fcn.005b16ec
mov ecx, dword [ebp - 0x1e0]
lea eax, [ebp - 0x1dc]
mov edx, 0x580724
call fcn.004054e8
mov edx, dword [ebp - 0x1dc]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c1434]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1e4]
mov edx, 0x580734
call fcn.004054e8
mov edx, dword [ebp - 0x1e4]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c12a4]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1e8]
mov edx, 0x580744
call fcn.004054e8
mov edx, dword [ebp - 0x1e8]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1f0]
mov eax, dword [0x5c0ff0]
mov eax, dword [eax]
call fcn.005addc4
mov ecx, dword [ebp - 0x1f0]
lea eax, [ebp - 0x1ec]
mov edx, 0x580754
call fcn.004054e8
mov edx, dword [ebp - 0x1ec]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c11bc]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1f4]
mov edx, 0x580764
call fcn.004054e8
mov edx, dword [ebp - 0x1f4]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c17b0]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1f8]
mov edx, 0x580774
call fcn.004054e8
mov edx, dword [ebp - 0x1f8]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x200]
mov eax, dword [0x5c112c]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x200]
lea eax, [ebp - 0x1fc]
mov edx, 0x580788
call fcn.004054e8
mov edx, dword [ebp - 0x1fc]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x208]
mov eax, dword [0x5c17e0]
mov eax, dword [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x208]
lea eax, [ebp - 0x204]
mov edx, 0x5807a0
call fcn.004054e8
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c16d4]
mov ecx, dword [ecx]
lea eax, [ebp - 0x20c]
mov edx, 0x5807b4
call fcn.004054e8
mov edx, dword [ebp - 0x20c]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x214]
mov eax, dword [0x5c14e0]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
mov edx, 0x5807cc
call fcn.004054e8
mov edx, dword [ebp - 0x210]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x21c]
mov eax, dword [0x5c1518]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov edx, 0x5807e0
call fcn.004054e8
mov edx, dword [ebp - 0x218]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x224]
mov eax, dword [0x5c12f4]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x5807f8
call fcn.004054e8
mov edx, dword [ebp - 0x220]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x22c]
mov eax, dword [0x5c1850]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x580810
call fcn.004054e8
mov edx, dword [ebp - 0x228]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x234]
mov eax, dword [0x5c11a4]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x580828
call fcn.004054e8
mov edx, dword [ebp - 0x230]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x23c]
mov eax, dword [0x5c1a28]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
mov edx, 0x58083c
call fcn.004054e8
mov edx, dword [ebp - 0x238]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x244]
mov eax, dword [0x5c1ae8]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
mov edx, 0x580854
call fcn.004054e8
mov edx, dword [ebp - 0x240]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x438]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x24c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
mov edx, 0x58086c
call fcn.004054e8
mov edx, dword [ebp - 0x248]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x254]
mov eax, dword [0x5c1998]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
mov edx, 0x580884
call fcn.004054e8
mov edx, dword [ebp - 0x250]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x25c]
mov eax, dword [0x5c1674]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
mov edx, 0x58089c
call fcn.004054e8
mov edx, dword [ebp - 0x258]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x264]
mov eax, dword [0x5c1708]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
mov edx, 0x5808b0
call fcn.004054e8
mov edx, dword [ebp - 0x260]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [0x5c19b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x350]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x26c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
mov edx, 0x5808c4
call fcn.004054e8
mov edx, dword [ebp - 0x268]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x274]
mov eax, dword [0x5c1620]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, 0x5808d8
call fcn.004054e8
mov edx, dword [ebp - 0x270]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x27c]
mov eax, dword [0x5c1110]
mov eax, dword [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov edx, 0x5808ec
call fcn.004054e8
mov edx, dword [ebp - 0x278]
mov eax, ebx
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, ebx
call fcn.004034c4
call fcn.00402ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58069b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5806cb
lea eax, [ebp - 0x27c]
mov edx, 0x2b
call fcn.004051f0
lea eax, [ebp - 0x1d0]
call fcn.00405984
ret