Function at 0x5808fc
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x53
push 0
push 0
dec ecx
jne 0x580904
push ecx
push ebx
push esi
push edi
mov ebx, dword [0x5c19b0]
lea esi, [ebp - 0x1cc]
xor eax, eax
push ebp
push 0x58111a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x581071
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x5c1278]
mov edx, dword [edx]
lea eax, [ebp - 0x1d0]
mov ecx, 0x581130
call fcn.00405c48
mov eax, dword [ebp - 0x1d0]
call fcn.00405bcc
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov edx, 0x581144
mov eax, esi
call fcn.00403348
mov eax, esi
call fcn.004030d8
call fcn.00402ca4
mov edx, 0x58115c
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1dc]
mov eax, dword [ebx]
mov eax, dword [eax + 0x31c]
call fcn.004f2388
mov eax, dword [ebp - 0x1dc]
lea edx, [ebp - 0x1d8]
call fcn.0057a5dc
mov ecx, dword [ebp - 0x1d8]
lea eax, [ebp - 0x1d4]
mov edx, 0x58116c
call fcn.004054e8
mov edx, dword [ebp - 0x1d4]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1e4]
mov eax, dword [ebx]
mov eax, dword [eax + 0x328]
call fcn.004f2388
mov ecx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e0]
mov edx, 0x581178
call fcn.00405c48
mov edx, dword [ebp - 0x1e0]
mov eax, esi
call fcn.004058e0
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1f0]
mov eax, dword [ebx]
mov eax, dword [eax + 0x330]
call fcn.004f2388
mov eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x1ec]
call fcn.0057a5dc
mov ecx, dword [ebp - 0x1ec]
lea eax, [ebp - 0x1e8]
mov edx, 0x581190
call fcn.004054e8
mov edx, dword [ebp - 0x1e8]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x1f8]
mov eax, dword [0x5c0ff0]
mov eax, dword [eax]
call fcn.005addc4
mov ecx, dword [ebp - 0x1f8]
lea eax, [ebp - 0x1f4]
mov edx, 0x5811a0
call fcn.004054e8
mov edx, dword [ebp - 0x1f4]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x338]
mov edx, dword [eax]
call dword [edx + 0xcc]
call fcn.005b1ac4
lea edx, [ebp - 0x200]
call fcn.005b16ec
mov ecx, dword [ebp - 0x200]
lea eax, [ebp - 0x1fc]
mov edx, 0x5811b0
call fcn.004054e8
mov edx, dword [ebp - 0x1fc]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c11bc]
mov ecx, dword [ecx]
lea eax, [ebp - 0x204]
mov edx, 0x5811c0
call fcn.004054e8
mov edx, dword [ebp - 0x204]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov ecx, dword [0x5c17b0]
mov ecx, dword [ecx]
lea eax, [ebp - 0x208]
mov edx, 0x5811d0
call fcn.004054e8
mov edx, dword [ebp - 0x208]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x214]
mov eax, dword [ebx]
mov eax, dword [eax + 0x43c]
call fcn.004f2388
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.0057a5dc
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
mov edx, 0x5811e4
call fcn.004054e8
mov edx, dword [ebp - 0x20c]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0xcc]
lea edx, [ebp - 0x21c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
mov edx, 0x5811f8
call fcn.004054e8
mov edx, dword [ebp - 0x218]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x224]
mov eax, dword [ebx]
mov eax, dword [eax + 0x39c]
call fcn.004f2388
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x581208
call fcn.00405c48
mov edx, dword [ebp - 0x220]
mov eax, esi
call fcn.004058e0
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x3ac]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x22c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x228]
mov edx, 0x581230
call fcn.004054e8
mov edx, dword [ebp - 0x228]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x234]
mov eax, dword [0x5c1518]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
mov edx, 0x581244
call fcn.004054e8
mov edx, dword [ebp - 0x230]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x23c]
mov eax, dword [0x5c12f4]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
mov edx, 0x58125c
call fcn.004054e8
mov edx, dword [ebp - 0x238]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x444]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x244]
call fcn.0040c92c
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
mov edx, 0x581274
call fcn.004054e8
mov edx, dword [ebp - 0x240]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x3a8]
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, 0x58128c
call fcn.004054e8
mov edx, dword [ebp - 0x248]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x3f8]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x254]
call fcn.0040c92c
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
mov edx, 0x5812a0
call fcn.004054e8
mov edx, dword [ebp - 0x250]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x25c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x25c]
lea eax, [ebp - 0x258]
mov edx, 0x5812b8
call fcn.004054e8
mov edx, dword [ebp - 0x258]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x438]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x264]
call fcn.0040c92c
mov ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
mov edx, 0x5812d0
call fcn.004054e8
mov edx, dword [ebp - 0x260]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x430]
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, 0x5812e8
call fcn.004054e8
mov edx, dword [ebp - 0x268]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x274]
mov eax, dword [0x5c1674]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x270]
mov edx, 0x581300
call fcn.004054e8
mov edx, dword [ebp - 0x270]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
lea edx, [ebp - 0x27c]
mov eax, dword [0x5c1708]
movzx eax, byte [eax]
call fcn.0040c92c
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x278]
mov edx, 0x581314
call fcn.004054e8
mov edx, dword [ebp - 0x278]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x350]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x284]
call fcn.0040c92c
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x280]
mov edx, 0x581328
call fcn.004054e8
mov edx, dword [ebp - 0x280]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x434]
mov edx, dword [eax]
call dword [edx + 0xc8]
and eax, 0x7f
lea edx, [ebp - 0x28c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x28c]
lea eax, [ebp - 0x288]
mov edx, 0x58133c
call fcn.004054e8
mov edx, dword [ebp - 0x288]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, dword [ebx]
mov eax, dword [eax + 0x408]
mov edx, dword [eax]
call dword [edx + 0xcc]
lea edx, [ebp - 0x294]
call fcn.0040c92c
mov ecx, dword [ebp - 0x294]
lea eax, [ebp - 0x290]
mov edx, 0x581350
call fcn.004054e8
mov edx, dword [ebp - 0x290]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
call fcn.005ab134
lea edx, [ebp - 0x29c]
call fcn.0040c92c
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
mov edx, 0x581368
call fcn.004054e8
mov edx, dword [ebp - 0x298]
mov eax, esi
call fcn.004058b8
call fcn.00403d14
call fcn.00402ca4
mov eax, esi
call fcn.004034c4
call fcn.00402ca4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x58107b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x581124
lea eax, [ebp - 0x29c]
mov edx, 0x1e
call fcn.004051f0
lea eax, [ebp - 0x224]
mov edx, 2
call fcn.0040599c
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.004051f0
lea eax, [ebp - 0x214]
call fcn.00405984
lea eax, [ebp - 0x210]
mov edx, 8
call fcn.004051f0
lea eax, [ebp - 0x1f0]
call fcn.00405984
lea eax, [ebp - 0x1ec]
mov edx, 2
call fcn.004051f0
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.0040599c
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004051f0
lea eax, [ebp - 0x1d0]
call fcn.00405984
ret