Function at 0x403930
Capabilities:
Create process on windows
Create process suspended
Get common file path
Hide graphical window
Resolve dns
Resolve function by parsing pe exports
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x800
mov eax, dword [0x464ce4]
xor eax, esp
mov dword [esp + 0x7fc], eax
push esi
push edi
mov esi, 0x44
push esi
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.0043a230
add esp, 0xc
push esi
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0043a230
mov ecx, dword [ebx + 0x2a4]
mov dword [esp + 0x84], esi
mov dword [esp + 0x3c], esi
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esp, 0xc
push 0x45d83c
call eax
mov ecx, dword [ebx + 0x2a0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45d83c
call eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xea]
push edx
mov word [esp + 0xec], cx
call fcn.0043a230
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x3fa]
push ecx
mov word [esp + 0x3fc], ax
call fcn.0043a230
add esp, 0xc
lea edx, [esp + 0x5f8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 0x5f8]
push eax
lea ecx, [esp + 0xe4]
push 0x104
push ecx
call fcn.004388e8
add esp, 0xc
push str.GameClient76.bin
lea edx, [esp + 0xe4]
push 0x104
push edx
call fcn.0043976b
add esp, 0xc
push 0x4693a8
lea eax, [esp + 0x3f4]
push 0x104
push eax
call fcn.004388e8
mov esi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x410]
push eax
push 0
call esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x600]
push eax
push 0
push 4
push 0
push 0
push 0
lea ecx, [esp + 0x100]
push ecx
push 0
call esi
test eax, eax
je 0x403e10
mov edx, dword [esp + 0x18]
push edx
call fcn.00405f40
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
jne 0x403ac4
push 0x40
push 0x45d8c8
push 0x45d9c4
jmp 0x403e37
mov ecx, dword [ebx + 0x4bc]
imul ecx, ecx, 0xd5
lea edx, [ecx + ebx + 0x504]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403af3
push 0x40
push 0x45d8c8
push str.dk_rg
jmp 0x403e37
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [edx]
xor eax, eax
push ecx
mov byte [esp + 0xc4], 0
mov dword [esp + 0xc5], eax
mov dword [esp + 0xc9], eax
mov dword [esp + 0xcd], eax
mov dword [esp + 0xd1], eax
mov dword [esp + 0xd5], eax
mov dword [esp + 0xd9], eax
mov dword [esp + 0xdd], eax
mov word [esp + 0xe1], ax
mov byte [esp + 0xe3], al
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0xc0]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403b54
mov ecx, 8
lea esi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x4bc]
imul eax, eax, 0xd5
mov edx, dword [eax + ebx + 0x529]
lea ecx, [eax + ebx + 0x529]
mov eax, dword [esp + 0xc]
mov dword [eax + 0x26], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x2a], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0x2e], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0x32], ecx
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
mov ecx, dword [edx + ebx + 0x524]
mov dword [eax + 0x20], ecx
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
movzx ecx, byte [edx + ebx + 0x539]
mov byte [eax + 0x24], cl
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
movzx ecx, byte [edx + ebx + 0x53a]
mov byte [eax + 0x25], cl
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
movzx ecx, byte [edx + ebx + 0x53b]
mov byte [eax + 0x36], cl
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
movzx ecx, byte [edx + ebx + 0x57c]
mov byte [eax + 0x79], cl
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
mov ecx, dword [edx + ebx + 0x581]
mov dword [eax + 0x80], ecx
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
mov ecx, dword [edx + ebx + 0x585]
mov dword [eax + 0x7c], ecx
mov edx, dword [ebx + 0x4bc]
imul edx, edx, 0xd5
lea edi, [eax + 0x38]
lea esi, [edx + ebx + 0x53c]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 0x78], 0
lea eax, [esp + 0xc0]
push eax
call fcn.004388dd
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc4]
add esp, 4
push 0
push 0x3e8
push ecx
push edx
call fcn.00445380
mov ecx, eax
movzx eax, word [esp + 0xc8]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
push esi
push ecx
lea ecx, [esp + 0xc8]
call fcn.004038a0
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x2e8]
push ecx
push 0x104
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], eax
mov word [esi + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.LauncherDll.dll
lea edx, [esp + 0x2ec]
push 0x104
push edx
call fcn.004397e0
lea eax, [esp + 0x2f4]
add esp, 0xc
push eax
mov eax, dword [esp + 0x1c]
call fcn.00402fa0
add esp, 4
test eax, eax
jne 0x403d4e
mov ecx, dword [ebx + 4]
push eax
push 0x45da14
push 0x45da1c
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0x10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
pop esi
mov ecx, dword [esp + 0x7fc]
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x8d], 0
je 0x403ab3
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebx + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
inc edi
cmp byte [esi + 0x78], 0
je 0x403d84
cmp byte [esi + 0x8c], 0
jne 0x403d94
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0x3e8
jl 0x403d74
cmp byte [esi + 0x78], 0
je 0x403de5
cmp byte [esi + 0x8c], 0
je 0x403de5
call fcn.00405ff0
cmp dword [0x46a6d4], 0
push 0
je 0x403db9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xf020
push 0x112
mov ecx, ebx
call fcn.0040661a
push 0
push 0xf060
push 0x112
mov ecx, ebx
call fcn.0040661a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebx + 4]
push 0
push 0x45da14
push str.DLL_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x45da4c
lea edx, [esp + 0xe8]
call fcn.00405df0
add esp, 8
push 0
push 0
lea edx, [esp + 0xe8]
push edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x804]
pop edi
pop esi
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret