Function at 0x403e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1454
call fcn.00406230
mov eax, dword [0x4120e0]
push ebx
push esi
mov dword [esp + 0x1458], eax
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00401950
add esp, 4
xor ebx, ebx
xor eax, eax
jmp 0x403eb0
mov cl, byte [esp + eax + 0x58]
mov byte [esp + eax + 0xc58], cl
inc eax
cmp cl, bl
jne 0x403eb0
lea edi, [esp + 0x58]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403ec5
mov ecx, dword [str.RzxClient.exe]
mov edx, dword [0x40f3b0]
mov eax, dword [0x40f3b4]
mov dword [edi], ecx
mov cx, word [0x40f3b8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
lea edi, [esp + 0xc58]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403f00
mov edx, dword [str.RzxServer.exe]
mov eax, dword [0x40f3a0]
mov ecx, dword [0x40f3a4]
mov dword [edi], edx
mov dx, word [0x40f3a8]
mov dword [edi + 4], eax
lea eax, [esp + 0x58]
mov dword [edi + 8], ecx
push eax
mov word [edi + 0xc], dx
call fcn.004018a0
add esp, 4
test eax, eax
jne 0x403f58
lea ecx, [esp + 0xc58]
push ecx
call fcn.004018a0
add esp, 4
test eax, eax
jne 0x403f58
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [esp + 0xc58]
push edx
call fcn.004018a0
add esp, 4
test eax, eax
jne 0x404168
cmp dword [0x412cc8], ebx
jne 0x404168
lea esp, [esp]
lea eax, [esp + 0x458]
push eax
call fcn.00402a40
lea edi, [esp + 0x45c]
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403f98
mov ecx, dword [str.rzxmd5.ini]
mov edx, dword [0x40f394]
mov ax, word [0x40f398]
mov dword [edi], ecx
mov cl, byte [0x40f39a]
mov dword [edi + 4], edx
push ebx
lea edx, [esp + 0x45c]
push edx
mov word [edi + 8], ax
push 0x40f38c
push 0x65
mov byte [edi + 0xa], cl
call fcn.00402e40
add esp, 0x10
test eax, eax
je 0x404151
push 0x40f388
lea eax, [esp + 0x45c]
push eax
lea ecx, [esp + 0x28]
call fcn.00401540
xor eax, eax
mov byte [esp + 0x1058], bl
mov ecx, 0xff
lea edi, [esp + 0x1059]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x11], ecx
mov dword [esp + 0x15], ecx
stosw word es:[edi], ax
mov dword [esp + 0x19], ecx
mov word [esp + 0x1d], cx
stosb byte es:[edi], al
mov byte [esp + 0x1f], cl
mov byte [esp + 0x858], bl
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x859]
rep stosd dword es:[edi], eax
push 0x40f20c
push 0x3ff
lea edx, [esp + 0x1060]
stosw word es:[edi], ax
push edx
push str.RzxServer.exe
lea ecx, [esp + 0x30]
mov dword [esp + 0x147c], ebx
mov byte [esp + 0x20], bl
stosb byte es:[edi], al
call fcn.004010a0
lea eax, [esp + 0x458]
push eax
call fcn.004018e0
mov eax, dword [0x412cc8]
add esp, 4
cmp eax, ebx
jne 0x40413d
lea ecx, [ecx]
lea ecx, [esp + 0x58]
push ecx
call fcn.004018a0
add esp, 4
test eax, eax
je 0x4041a7
lea edx, [esp + 0x58]
push edx
call fcn.00401880
add esp, 4
test eax, eax
je 0x4041a7
push 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.004026b0
add esp, 0xc
test eax, eax
jne 0x404110
lea edx, [esp + 0x858]
push edx
mov ecx, 0x100
lea edi, [esp + 0x85c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00404620
lea ecx, [esp + 0x1064]
push ecx
lea edx, [esp + 0x868]
push edx
call fcn.00404cbd
add esp, 0x14
test eax, eax
jne 0x404189
mov eax, dword [0x412cc8]
xor esi, esi
cmp eax, ebx
jne 0x40413d
jmp 0x404120
inc esi
cmp esi, 0x3c
jg 0x404090
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x412cc8], ebx
je 0x404120
lea ecx, [esp + 0x20]
mov dword [esp + 0x146c], 0xffffffff
call fcn.004012d0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x412cc8], ebx
je 0x403f80
mov ecx, dword [esp + 0x1464]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x145c]
call fcn.00404e96
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.RzxClient.exe
mov dword [0x412cc8], 1
call fcn.00402f80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
mov dword [0x412cc8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]