Function at 0x422620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4472f0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x20]
push 0
push edi
mov eax, edi
mov dword [ebp - 0x24], edi
call fcn.00422cc0
cmp dword [esi + 0x30], 0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x42267f
test edi, edi
je 0x42266f
lea eax, [edi - 0x20]
jmp 0x422671
xor eax, eax
mov eax, dword [eax + 4]
push 0x3ed
push eax
call ebx
mov dword [esi + 0x30], eax
cmp dword [esi + 0x34], 0
jne 0x42269e
test edi, edi
je 0x42268e
lea eax, [edi - 0x20]
jmp 0x422690
xor eax, eax
mov ecx, dword [eax + 4]
push 0x3ee
push ecx
call ebx
mov dword [esi + 0x34], eax
cmp dword [esi + 0x24], 0
jne 0x4226bd
test edi, edi
je 0x4226ad
lea eax, [edi - 0x20]
jmp 0x4226af
xor eax, eax
mov edx, dword [eax + 4]
push 0x3f0
push edx
call ebx
mov dword [esi + 0x24], eax
cmp dword [esi + 0x28], 0
jne 0x4226dc
test edi, edi
je 0x4226cc
lea eax, [edi - 0x20]
jmp 0x4226ce
xor eax, eax
mov eax, dword [eax + 4]
push 0x3f1
push eax
call ebx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x2c], 0
jne 0x4226fb
test edi, edi
je 0x4226eb
lea eax, [edi - 0x20]
jmp 0x4226ed
xor eax, eax
mov ecx, dword [eax + 4]
push 0x3f2
push ecx
call ebx
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x38], 0
jne 0x422717
test edi, edi
je 0x42270a
lea eax, [edi - 0x20]
jmp 0x42270c
xor eax, eax
mov edx, dword [eax + 4]
push 1
push edx
call ebx
mov dword [esi + 0x38], eax
xor edx, edx
lea ecx, [esi + 4]
call fcn.0040a3d0
xor eax, eax
cmp dword [0x45d52c], 1
setne al
push eax
mov eax, dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edi, 0x68
mov byte [ebp - 4], 1
call fcn.004032e0
test eax, eax
je 0x422788
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov byte [ebp - 4], 2
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edi, 0x72
mov byte [ebp - 4], 3
call fcn.004032e0
test eax, eax
je 0x4227bf
push eax
mov eax, edi
lea edi, [ebp - 0x1c]
call fcn.00403490
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
lea edi, [ebp - 0x14]
call fcn.00403fb0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42281c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x460244]
mov ecx, dword [esi + 0x2c]
push 1
push eax
push 0x30
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov edi, 0x73
mov byte [ebp - 4], 5
call fcn.004032e0
test eax, eax
je 0x422874
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
mov ecx, dword [esi + 0x2c]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x42289f
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov edi, 0x68
mov byte [ebp - 4], 6
call fcn.004032e0
test eax, eax
je 0x4228d2
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov byte [ebp - 4], 7
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov edi, 0x74
mov byte [ebp - 4], 8
call fcn.004032e0
test eax, eax
je 0x42290c
push eax
mov eax, edi
lea edi, [ebp - 0x1c]
call fcn.00403490
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
push ecx
push ebx
lea edi, [ebp - 0x14]
call fcn.00403fb0
add ebx, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 7
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422940
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422963
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea edx, [eax + 0x10]
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 0xa
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x4229ae
mov ecx, 0x104
lea eax, [ebp - 0x10]
call fcn.00403660
mov edx, dword [ebp - 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x4229c5
xor eax, eax
jmp 0x4229e5
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4229d0
sub eax, edi
sar eax, 1
js 0x422bf8
cmp eax, dword [edx - 8]
jg 0x422bf8
mov dword [edx - 0xc], eax
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 0x13
mov word [edx + eax*2], cx
push str.StaffCopLanguages_
lea eax, [ebp - 0x10]
push eax
call fcn.00403a80
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov edi, 0xcd
mov byte [ebp - 4], 0xb
call fcn.004032e0
test eax, eax
je 0x422a40
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xc
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
call fcn.00403a80
add ebx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422a72
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov dword [ebp - 0x18], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x10]
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x422aa1
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x24]
lea eax, [ebp - 0x30]
push eax
push 2
push 0x449
lea edx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], 0x4225f0
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov edi, 0x70
mov byte [ebp - 4], 0xe
call fcn.004032e0
test eax, eax
je 0x422af9
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
mov ecx, dword [esi + 0x30]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
add ebx, 0xfffffff0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422b24
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov edx, dword [0x45d48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x45d48c
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov edi, 0x71
mov byte [ebp - 4], 0xf
call fcn.004032e0
test eax, eax
je 0x422b5a
push eax
mov eax, edi
lea edi, [ebp - 0x20]
call fcn.00403490
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
mov ecx, dword [esi + 0x34]
push ebx
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
add ebx, 0xfffffff0
or esi, 0xffffffff
lea edx, [ebx + 0xc]
mov eax, esi
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422b87
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp - 0x24]
push 1
push eax
call fcn.00422cc0
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x422ba3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422bc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x422be4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004036b0
int3