Function at 0x4014d3
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address
Resolve function by parsing pe exports
Set current directory

Disassembly:
jmp 0x40b640
push 0xffffffffffffffff
push 0x486512
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x280], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
xor edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x280], 2
call fcn.0044d86c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x174]
push eax
push 0x104
mov byte [esp + 0x288], 3
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [esp + 0x288]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, 0xffffffff
jne 0x40b6f8
push 0x4a2c44
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 8
call fcn.0041f76e
lea ecx, [esp + 0x5c]
call fcn.004116ba
mov byte [esp + 0x280], 4
call fcn.0044d86c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
push ebx
push esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x288], 5
call fcn.0041174d
test eax, eax
push 1
jne 0x40b73d
lea eax, [esp + 0x40]
push eax
push ebx
jmp 0x40b743
lea ecx, [esp + 0x40]
push ecx
push esi
mov ecx, ebp
call fcn.004018de
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x40b758
mov dword [esp + 0x14], ebx
jmp 0x40b765
mov ecx, dword [esp + 0x44]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x4c]
push edx
push esi
mov ecx, ebp
call fcn.0040115e
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x40b780
mov dword [esp + 0x24], ebx
jmp 0x40b78d
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x14]
xor eax, eax
xor esi, esi
cmp edx, ebx
mov dword [esp + 0x18], eax
jle 0x40b8a6
jmp 0x40b7b0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
jmp 0x40b7b0
cmp eax, dword [esp + 0x24]
lea edx, [esp + 0x74]
jge 0x40b7d0
mov ecx, dword [ecx + eax*4]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x40b7c0
inc dword [esp + 0x18]
jmp 0x40b7e2
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + esi*4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x40b7d7
inc esi
mov al, byte [esp + 0x74]
cmp al, bl
mov edx, 1
je 0x40b805
lea ecx, [esp + 0x74]
cmp al, 0x5c
jne 0x40b7fd
cmp byte [ecx + 1], bl
je 0x40b7fd
inc edx
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x40b7f3
mov ecx, dword [ebp + 0x50]
push edx
add ecx, 0x60
push ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push eax
mov ecx, ebp
call fcn.00401681
lea eax, [esp + 0x74]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40b830
sub eax, edx
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401037
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x40b887
mov ecx, dword [esp + 0x38]
mov eax, edi
sub eax, edx
sub ecx, edx
sar eax, 3
sar ecx, 3
cmp eax, ecx
jae 0x40b887
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push edi
call fcn.00401140
add esp, 0x14
add edi, 8
mov dword [esp + 0x34], edi
jmp 0x40b89c
lea edx, [esp + 0x1c]
push edx
push 1
push edi
lea ecx, [esp + 0x38]
call fcn.004018bb
mov edi, dword [esp + 0x34]
cmp esi, dword [esp + 0x14]
jl 0x40b7a3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28c]
push 4
push eax
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, ebp
call fcn.004011e0
mov esi, eax
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x280], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x280], 3
call fcn.004116de
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x280], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b92e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
call fcn.00401866
lea ecx, [esp + 0x4c]
call fcn.004017e4
lea ecx, [esp + 0x3c]
call fcn.004017e4
mov ecx, dword [esp + 0x278]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x274
ret 8