Function at 0x405210
Capabilities:
Create directory
Create process on windows
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x430efc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x3c]
call fcn.00423482
lea eax, [esp + 0x28]
mov dword [esp + 0x154], 0
push eax
call fcn.00407ef0
add esp, 4
push str.patcher.dat
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x160], 1
call fcn.0042401a
mov eax, dword [eax]
push 0x10
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x160], 2
call fcn.00408370
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x154], 1
call fcn.00423d85
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], 0
call fcn.00423d85
lea eax, [esp + 0x4c]
push 8
push eax
lea ecx, [esp + 0x44]
lea esi, [esp + 0x54]
call fcn.004236b1
mov ebx, 4
lea ecx, [esp + 0x38]
push ebx
push ecx
lea ecx, [esp + 0x44]
call fcn.004236b1
lea edx, [esp + 0x4c]
push ebx
push edx
lea ecx, [esp + 0x44]
call fcn.004236b1
push 0x43fab8
call fcn.004089b0
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, 2
jne 0x405974
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.004076d0
mov ecx, edi
call fcn.00407820
test al, al
jne 0x405940
jmp 0x405318
mov esi, dword [esp + 0x28]
mov al, byte [0x465739]
test al, al
jne 0x405940
push 1
push esi
mov ecx, edi
call fcn.004077b0
mov al, byte [esi]
cmp al, 3
jbe 0x40533f
inc esi
mov dword [esp + 0x28], esi
jmp 0x405931
lea ecx, [esp + 0x4c]
cmp al, 3
mov byte [esi], 0
mov dword [esp + 0x28], ecx
jne 0x405496
mov edx, dword [0x44169c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.00423f0e
push 0x43fab4
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 4
call fcn.0042282c
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.00422792
lea eax, [esp + 0x20]
push esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x15c], 5
call fcn.00422716
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 6
push ecx
lea ecx, [esp + 0x38]
call fcn.00423afa
push ecx
mov byte [esp + 0x158], 7
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push 0x43f1fc
push edx
call fcn.0042408e
call fcn.00408210
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x154], 6
call fcn.00423d85
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x60]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 3
push edx
push 1
push eax
call fcn.004015b0
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x70]
lea edx, [esp + 0x24]
push edx
push 1
push eax
call fcn.004017c0
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00423afa
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x160], 8
call fcn.00423afa
mov ecx, edi
mov byte [esp + 0x15c], 6
call fcn.00406c10
mov byte [esp + 0x154], 5
lea ecx, [esp + 0x20]
call fcn.00423d85
lea ecx, [esp + 0x24]
mov byte [esp + 0x154], 4
call fcn.00423d85
mov byte [esp + 0x154], 0
lea ecx, [esp + 0x10]
jmp 0x40592c
test al, al
jne 0x405562
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x2c]
push eax
call fcn.004014b0
push ecx
mov byte [esp + 0x158], 9
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push 0x43f1fc
push ecx
call fcn.0042408e
call fcn.00408210
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x154], 0
call fcn.00423d85
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x60]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push edx
push 1
push eax
call fcn.004015b0
mov eax, dword [0x44169c]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00423f0e
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x70]
lea edx, [esp + 0x10]
mov byte [esp + 0x154], 0xa
push edx
push 1
push eax
call fcn.004017c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.00423d85
mov eax, dword [0x44169c]
push ecx
mov ecx, esp
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], esp
push edx
mov dword [ecx], eax
call fcn.00423f0e
mov ecx, edi
call fcn.00406310
jmp 0x405931
cmp al, 1
jne 0x40562e
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
push eax
call fcn.004014b0
push ecx
mov byte [esp + 0x158], 0xb
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
push 0x43f1fc
push ecx
call fcn.0042408e
call fcn.00408210
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x154], 0
call fcn.00423d85
mov eax, dword [edi + 0x68]
lea ecx, [edi + 0x60]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push edx
push 1
push eax
call fcn.004015b0
mov eax, dword [0x44169c]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00423f0e
mov eax, dword [edi + 0x78]
lea ecx, [edi + 0x70]
lea edx, [esp + 0x10]
mov byte [esp + 0x154], 0xc
push edx
push 1
push eax
call fcn.004017c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x154], 0
call fcn.00423d85
mov eax, dword [0x44169c]
push ecx
mov ecx, esp
lea edx, [esp + 0x50]
mov dword [esp + 0x1c], esp
push edx
mov dword [ecx], eax
call fcn.00423f0e
mov ecx, edi
call fcn.00406580
jmp 0x405931
cmp al, 2
jne 0x405931
mov ebp, dword [edi + 0x68]
mov eax, dword [edi + 0x6c]
lea esi, [edi + 0x60]
sub eax, ebp
sar eax, 2
cmp eax, 1
mov dword [esp + 0x14], 2
jae 0x405708
mov ecx, esi
call fcn.004078b0
cmp eax, 1
jbe 0x40566c
mov ecx, esi
call fcn.004078b0
mov ebx, eax
jmp 0x405671
mov ebx, 1
mov ecx, esi
call fcn.004078b0
add eax, ebx
mov dword [esp + 0x10], eax
jns 0x405682
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.00423ac6
mov edx, dword [esi + 4]
add esp, 4
mov ebx, eax
mov ecx, esi
push ebx
push ebp
push edx
call fcn.004078d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00407900
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push ebp
call fcn.004078d0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00407870
mov eax, dword [esi + 4]
push eax
call fcn.00423aef
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [ebx + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.004078b0
lea edx, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
mov ebx, 4
jmp 0x405794
mov eax, ebp
sub eax, ebp
sar eax, 2
cmp eax, 1
jae 0x405756
lea eax, [ebp + 4]
mov ecx, esi
push eax
push ebp
push ebp
call fcn.004078d0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
sub edx, ebp
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00407900
mov eax, dword [esi + 8]
cmp ebp, eax
je 0x405791
mov edx, dword [esp + 0x14]
mov dword [ebp], edx
add ebp, ebx
cmp ebp, eax
jne 0x405747
jmp 0x405791
lea eax, [ebp - 4]
push ebp
push ebp
push eax
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.004078d0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp ebp, eax
je 0x40577d
sub eax, ebx
sub ecx, ebx
cmp eax, ebp
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x405771
lea eax, [ebp + 4]
cmp ebp, eax
je 0x405791
mov ecx, dword [esp + 0x14]
mov dword [ebp], ecx
add ebp, ebx
cmp ebp, eax
jne 0x405784
add dword [esi + 8], ebx
mov edx, dword [0x44169c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.00423f0e
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
lea esi, [edi + 0x70]
sub ecx, eax
sar ecx, 2
cmp ecx, 1
mov byte [esp + 0x154], 0xd
mov ebp, eax
jae 0x4058a4
mov edx, dword [esi + 4]
test edx, edx
je 0x4057e0
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4057e5
mov ecx, 1
test edx, edx
jne 0x4057ed
xor eax, eax
jmp 0x4057f2
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x18], eax
jge 0x4057fe
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00423ac6
mov ebx, dword [esi + 4]
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
je 0x40583d
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00401a40
mov edx, dword [esp + 0x18]
add ebx, 4
add esp, 8
add edx, 4
cmp ebx, ebp
mov dword [esp + 0x10], edx
jne 0x40581d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00401a40
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
add esp, 8
add eax, 4
push eax
push ecx
push ebp
mov ecx, esi
call fcn.00407930
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00407880
mov eax, dword [esi + 4]
push eax
call fcn.00423aef
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.004078b0
lea eax, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov ebx, 4
jmp 0x405920
mov ecx, eax
sub ecx, ebp
sar ecx, 2
cmp ecx, 1
jae 0x4058f0
lea edx, [ebp + 4]
mov ecx, esi
push edx
push eax
push ebp
call fcn.00407930
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
sub edx, ebp
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00407970
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call fcn.004079a0
add esp, 0xc
jmp 0x40591d
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00407930
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push ebp
call fcn.004079d0
lea ecx, [esp + 0x20]
lea edx, [ebp + 4]
push ecx
push edx
push ebp
call fcn.004079a0
add esp, 0x18
add dword [esi + 8], ebx
mov byte [esp + 0x154], 0
lea ecx, [esp + 0x14]
call fcn.00423d85
mov ecx, edi
call fcn.00407820
test al, al
je 0x405314
mov ecx, edi
call fcn.00407810
lea ecx, [esp + 0x3c]
mov dword [esp + 0x154], 0xffffffff
call fcn.004234d7
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x148
ret
push 0x14
call fcn.00423ac6
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
test esi, esi
mov byte [esp + 0x154], 3
je 0x4059ac
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x43f1e0
call fcn.00423df3
mov ecx, esi
call fcn.00403790
jmp 0x4059ae
xor eax, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push 0x439070
push eax
mov byte [esp + 0x15c], 0
call fcn.0041381a
nop
nop
nop
nop
nop
nop
nop