Function at 0x43156e
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x68], edi
jb 0x43159a
lea esi, [edi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x64], esi
jmp 0x4315a2
lea eax, [edi + 4]
mov dword [ebp - 0x64], eax
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040c020
push 0x4e1314
mov ecx, edi
mov ebx, eax
call fcn.00411ca0
push 0x4caae8
lea ecx, [ebp - 0x20]
call fcn.00401dd0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0040c650
mov bl, al
neg bl
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0x20]
inc bl
call fcn.00402c90
test bl, bl
je 0x43173f
push 0x64
pop esi
push 1
push 0x4c9dfc
push 0x80000001
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x74], 0x1000
mov bl, 1
call fcn.00413b40
cmp dword [ebp - 0x70], 0
je 0x431687
and dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push eax
push 0x4c9dec
lea ecx, [ebp - 0x70]
call fcn.00413d50
test eax, eax
jne 0x431641
mov esi, dword [ebp - 0x60]
xor bl, bl
neg esi
sbb esi, esi
and esi, 0x64
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x60]
push eax
push 0x4c9dc8
lea ecx, [ebp - 0x70]
call fcn.00413d50
test eax, eax
jne 0x43165e
mov esi, dword [ebp - 0x60]
xor bl, bl
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x60]
push eax
push 0x4c9da8
lea ecx, [ebp - 0x70]
call fcn.00413d50
test eax, eax
jne 0x43167b
mov eax, dword [ebp - 0x60]
xor bl, bl
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x70]
call fcn.00413b90
test bl, bl
je 0x4316e2
lea eax, [ebp - 0x5c]
push eax
call fcn.0043147f
pop ecx
test al, al
je 0x4316df
call fcn.0040aa00
mov esi, dword [ebp - 0x5c]
mov edi, eax
mov ebx, dword [edi]
push esi
lea eax, [ebp - 0x98]
push 0x56dbcc
push eax
add ebx, 0xc
call fcn.00409df0
add esp, 0xc
push eax
push 0x4cd0d0
mov ecx, edi
call dword [ebx]
push 0
push 1
lea ecx, [ebp - 0x98]
call fcn.00402c90
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov edi, dword [ebp - 0x68]
jmp 0x4316e2
mov esi, dword [ebp - 0x5c]
push 0x64
pop eax
mov dword [ebp - 0x68], eax
cmp esi, eax
lea eax, [ebp - 0x68]
ja 0x4316f2
lea eax, [ebp - 0x5c]
mov eax, dword [eax]
mov ebx, 0x56d056
push ebx
push 0
mov esi, 0x4c9d98
push esi
push 0x42
mov dword [ebp - 0x5c], eax
call fcn.00415820
mov eax, dword [ebp - 0x64]
add esp, 0x10
cmp dword [edi + 0x18], 8
jb 0x43171a
mov eax, dword [eax]
push dword [ebp - 0x74]
push dword [ebp - 0x5c]
push eax
call fcn.0044e7d2
push ebx
push 0
push esi
push 0x45
call fcn.00415820
add esp, 0x1c
lea ecx, [ebp - 0x70]
call fcn.00413b90
mov esi, dword [ebp - 0x64]
push 0x4c9d64
lea ecx, [ebp - 0x3c]
call fcn.0040aa70
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x431758
lea eax, [ebp - 0x38]
push 0x20019
push eax
push 0x80000001
lea ecx, [ebp - 0x7c]
call fcn.00413b40
xor ebx, ebx
cmp dword [ebp - 0x7c], ebx
je 0x431827
push 0x4c9d48
lea ecx, [ebp - 0x7c]
call fcn.00413d00
test al, al
jne 0x431827
push edi
lea ecx, [ebp - 0x20]
call fcn.004021a0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e560
push 0x56da74
lea ecx, [ebp - 0x98]
call fcn.0040aa70
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e6c0
push eax
lea ecx, [ebp - 0x58]
call fcn.0040e540
lea ecx, [ebp - 0xb4]
call fcn.0040e510
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.00402ea0
lea eax, [ebp - 0x20]
push eax
call fcn.00412d40
pop ecx
test al, al
je 0x431817
lea eax, [ebp - 0x58]
push eax
call fcn.00412d40
pop ecx
test al, al
je 0x431817
cmp dword [edi + 0x18], 8
jb 0x43180e
mov eax, dword [esi]
jmp 0x431810
mov eax, esi
push eax
call fcn.0044f574
pop ecx
lea ecx, [ebp - 0x58]
call fcn.0040e510
lea ecx, [ebp - 0x20]
call fcn.0040e510
cmp dword [edi + 0x18], 8
jb 0x43182f
mov esi, dword [esi]
push 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.00413b90
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00402ea0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret