Function at 0x422f70
Capabilities:
Create thread
Get common file path

Disassembly:
sub esp, 0x804
push ebx
mov ebx, dword [esp + 0x80c]
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, dword [ebx + 0x1c]
push 0
lea eax, [esp + 0x18]
push 4
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x24], 0
call fcn.00421ab0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
stosw word es:[edi], ax
test edx, edx
stosb byte es:[edi], al
jne 0x423028
mov edi, dword [ebx + 0x10]
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, edi
jne 0x42300c
lea edx, [esp + 0x1c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4a68fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4230ab
mov ecx, dword [ebp + 0x1a0]
lea eax, [esp + 0x1c]
push 0x208
push eax
push edi
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExA
jmp 0x4230b0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x228]
push 0x208
push eax
push edx
mov ecx, ebp
call fcn.00421ab0
cmp word [ebx + 0x20], 0
je 0x423088
push 0
push 0
lea ecx, [esp + 0x24]
push 0x208
push ecx
lea edx, [esp + 0x234]
push 0xffffffffffffffff
push edx
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x4230b0
lea edi, [esp + 0x224]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x4230e4
mov al, byte [esp + 0x1c]
test al, al
je 0x423100
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x30]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4230e4
mov dword [ebx + 0xc], eax
mov al, byte [esp + 0x1c]
test al, al
je 0x423100
lea edx, [esp + 0x1c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x423111
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00446040
add esp, 8
mov edx, dword [ebp + 0x1b0]
xor esi, esi
mov edi, 1
cmp dword [edx + 0x854], 3
jne 0x42325d
mov eax, dword [ebp + 0x570]
test eax, eax
jne 0x42325d
mov al, byte [esp + 0x1c]
test al, al
je 0x423163
mov eax, dword [ebp + 0x19c]
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x570], eax
jmp 0x423188
mov edx, dword [ebx + 0xc]
push 0
push 0
push 0
push edx
call fcn.00445d40
mov edx, dword [ebp + 0x180]
add esp, 0x10
xor ecx, ecx
cmp eax, edx
sete cl
mov dword [ebp + 0x570], ecx
mov edi, dword [ebp + 0x570]
test edi, edi
je 0x42325d
mov ecx, dword [ebp + 0x2bc]
mov eax, dword [ebx + 0x10]
cmp ecx, eax
je 0x4231b3
sub eax, ecx
mov ecx, dword [ebp + 0x180]
add ecx, eax
mov dword [ebp + 0x180], ecx
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x18], 0
test eax, eax
je 0x4231e5
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [ebp + 0x28c]
call fcn.00462c10
test eax, eax
jl 0x4231e5
add eax, dword [ebx + 0x10]
mov esi, eax
jne 0x4231fd
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
push 0
push 0
push ecx
push edx
call fcn.00445d40
add esp, 0x10
test eax, eax
je 0x423223
cmp eax, dword [ebx + 0x10]
je 0x423223
push 0
push 1
push 1
lea ecx, [esp + 0x28]
push 0
push ecx
push str._ESP8_1
push 0x4ba580
push eax
mov ecx, ebp
call fcn.00421650
jmp 0x42325d
push str.DebugBreak
push str.kernel32
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x10]
push edx
push 0
push 0
push eax
mov eax, dword [ebp + 0x544]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov eax, dword [ebp + 4]
test eax, eax
je 0x42337b
test edi, edi
je 0x42337b
mov ecx, dword [ebp + 0x1b0]
cmp dword [ecx + 0x854], 1
jne 0x42328d
mov eax, dword [ebp + 0x550]
test eax, eax
jne 0x42337b
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, dword [ebx + 0x10]
je 0x42337b
mov eax, dword [ebp + 8]
test eax, eax
je 0x42330d
lea edx, [esp + 0x1c]
mov ecx, ebp
push edx
call fcn.004234c0
test eax, eax
je 0x42337b
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4232ee
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [ebp + 0x28c]
call fcn.00462c10
test eax, eax
jl 0x4232ee
add eax, dword [ebx + 0x10]
mov esi, eax
jne 0x423306
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
push 0
push 0
push edx
push eax
call fcn.00445d40
add esp, 0x10
test eax, eax
je 0x42337b
cmp eax, dword [ebx + 0x10]
je 0x42337b
jmp 0x42335c
mov eax, dword [ebp + 0x114]
mov dword [esp + 0x10], 0
test eax, eax
je 0x42333f
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [ebp + 0x28c]
call fcn.00462c10
test eax, eax
jl 0x42333f
add eax, dword [ebx + 0x10]
mov esi, eax
jne 0x423357
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0xc]
push 0
push 0
push ecx
push edx
call fcn.00445d40
add esp, 0x10
test eax, eax
je 0x42337b
cmp eax, dword [ebx + 0x10]
je 0x42337b
push 0
push 1
push 1
lea ecx, [esp + 0x28]
push 0
push ecx
push str._ESP8_1
push 0x4ba580
push eax
mov ecx, ebp
call fcn.00421650
mov al, byte [esp + 0x1c]
test al, al
jne 0x4233c9
mov edx, dword [ebx + 0xc]
mov dword [ebp + 0x2c0], edx
mov eax, dword [ebx + 0xc]
push eax
call fcn.004461f0
mov dword [ebp + 0x4d0], eax
mov ebx, dword [ebx + 0x10]
mov dword [ebp + 0x2c4], ebx
mov ecx, dword [0x4ba858]
add esp, 4
test ecx, ecx
je 0x4234a5
push eax
push ebx
call fcn.0040ce10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8
mov ecx, dword [ebx + 0xc]
push ecx
call fcn.004461f0
mov ecx, dword [ebx + 0xc]
add esp, 4
mov edi, eax
mov eax, dword [ebx + 0x10]
lea edx, [esp + 0x1c]
push edi
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004228d0
test esi, esi
je 0x4233ff
push 0
push str._DllMain
push esi
mov ecx, ebp
call fcn.004285d0
mov edx, dword [ebx + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
call fcn.00427840
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00429780
mov eax, dword [ebx + 0x10]
lea ecx, [esp + 0x42c]
lea edx, [eax + edi]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push 0x4a685c
push 0x3e8
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x18
lea edx, [esp + 0x42c]
mov ecx, ebp
push edx
call fcn.00425f70
mov ecx, dword [0x4ba858]
test ecx, ecx
je 0x423466
mov eax, dword [ebx + 0x10]
push edi
push eax
call fcn.0040ce10
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ecx + 0x194]
test eax, eax
je 0x4234a5
jne 0x42347c
xor eax, eax
jmp 0x42347f
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4234a5
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebp + 0x1b4]
push edi
lea eax, [esp + 0x20]
mov ecx, dword [ecx + 0x194]
push edx
push eax
call fcn.00449660
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret 8