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

Disassembly:
push 0xffffffffffffffff
push 0x43ee42
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.00428480
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 0x407368
push 0x44bd1c
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 8
call fcn.0041400e
lea ecx, [esp + 0x5c]
call fcn.0040aac9
mov byte [esp + 0x280], 4
call fcn.00428480
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.0040ab5c
test eax, eax
push 1
jne 0x4073ad
lea eax, [esp + 0x40]
push eax
push ebx
jmp 0x4073b3
lea ecx, [esp + 0x40]
push ecx
push esi
mov ecx, ebp
call fcn.00406f40
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x4073c8
mov dword [esp + 0x14], ebx
jmp 0x4073d5
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.00407100
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jne 0x4073f0
mov dword [esp + 0x24], ebx
jmp 0x4073fd
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 0x407516
jmp 0x407420
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
jmp 0x407420
cmp eax, dword [esp + 0x24]
lea edx, [esp + 0x74]
jge 0x407440
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 0x407430
inc dword [esp + 0x18]
jmp 0x407452
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 0x407447
inc esi
mov al, byte [esp + 0x74]
cmp al, bl
mov edx, 1
je 0x407475
lea ecx, [esp + 0x74]
cmp al, 0x5c
jne 0x40746d
cmp byte [ecx + 1], bl
je 0x40746d
inc edx
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x407463
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.00401890
lea eax, [esp + 0x74]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4074a0
sub eax, edx
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x28]
call fcn.00401510
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x4074f7
mov ecx, dword [esp + 0x38]
mov eax, edi
sub eax, edx
sub ecx, edx
sar eax, 3
sar ecx, 3
cmp eax, ecx
jae 0x4074f7
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.00404eb0
add esp, 0x14
add edi, 8
mov dword [esp + 0x34], edi
jmp 0x40750c
lea edx, [esp + 0x1c]
push edx
push 1
push edi
lea ecx, [esp + 0x38]
call fcn.00406090
mov edi, dword [esp + 0x34]
cmp esi, dword [esp + 0x14]
jl 0x407413
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.00404b10
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 0x407567
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.0040aaed
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 0x40759e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
call fcn.00405d90
lea ecx, [esp + 0x4c]
call fcn.00405d40
lea ecx, [esp + 0x3c]
call fcn.00405d40
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