Function at 0x4039d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40e87b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1044
call fcn.00404b30
mov eax, dword [0x412100]
push ebx
push esi
mov dword [esp + 0x1048], eax
lea eax, [esp + 0x44]
push edi
push eax
call fcn.00401d30
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x48]
mov byte [esp + eax + 0x848], cl
inc eax
test cl, cl
jne 0x403a14
lea edi, [esp + 0x48]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a30
mov ecx, dword [str.RzxClient.exe]
mov edx, dword [0x40f4d0]
mov eax, dword [0x40f4d4]
mov dword [edi], ecx
mov cx, word [0x40f4d8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
lea edi, [esp + 0x848]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a64
mov edx, dword [0x40f478]
mov eax, dword [0x40f47c]
mov ecx, dword [0x40f480]
mov dword [edi], edx
mov dx, word [0x40f484]
mov dword [edi + 4], eax
lea eax, [esp + 0x48]
mov dword [edi + 8], ecx
push eax
mov word [edi + 0xc], dx
call fcn.00401c80
add esp, 4
test eax, eax
jne 0x403abc
lea ecx, [esp + 0x848]
push ecx
call fcn.00401c80
add esp, 4
test eax, eax
jne 0x403abc
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [esp + 0x848]
push edx
call fcn.00401c80
add esp, 4
test eax, eax
jne 0x403c70
mov eax, dword [0x412d04]
test eax, eax
jne 0x403c70
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x403af0
lea eax, [esp + 0x448]
push eax
call fcn.00402150
lea edi, [esp + 0x44c]
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b08
mov ecx, dword [str.rzxmd5.ini]
mov edx, dword [0x40f4c4]
mov ax, word [0x40f4c8]
mov dword [edi], ecx
mov cl, byte [0x40f4ca]
mov dword [edi + 4], edx
push 0
lea edx, [esp + 0x44c]
push edx
mov word [edi + 8], ax
push 0x40f4bc
push 0x65
mov byte [edi + 0xa], cl
call fcn.004026f0
add esp, 0x10
test eax, eax
je 0x403c5c
push 0x40f4b8
lea eax, [esp + 0x44c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401880
mov byte [esp + 0xc48], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0xc49]
rep stosd dword es:[edi], eax
push 0x40f263
push 0x3ff
lea ecx, [esp + 0xc50]
stosw word es:[edi], ax
push ecx
push 0x40f478
lea ecx, [esp + 0x20]
mov dword [esp + 0x106c], 0
stosb byte es:[edi], al
call fcn.004013c0
lea edx, [esp + 0x448]
push edx
call fcn.00401cc0
mov eax, dword [0x412d04]
add esp, 4
test eax, eax
jne 0x403c48
lea ebx, [ebx]
lea eax, [esp + 0x48]
push eax
call fcn.00401c80
add esp, 4
test eax, eax
je 0x403c91
lea ecx, [esp + 0x48]
push ecx
call fcn.00401c60
add esp, 4
test eax, eax
je 0x403c91
push str.RzxClient.exe
call fcn.00402430
add esp, 4
test eax, eax
je 0x403c17
mov dword [0x412d08], 0
jmp 0x403c27
mov eax, dword [0x412d08]
inc eax
cmp eax, 4
mov dword [0x412d08], eax
jae 0x403c91
mov eax, dword [0x412d04]
xor esi, esi
test eax, eax
jne 0x403c48
inc esi
cmp esi, 0xf
jg 0x403bd0
push 0x3e8
call ebx
mov eax, dword [0x412d04]
test eax, eax
je 0x403c32
lea ecx, [esp + 0x10]
mov dword [esp + 0x105c], 0xffffffff
call fcn.00401610
push 0x7d0
call ebx
mov eax, dword [0x412d04]
test eax, eax
je 0x403af0
mov ecx, dword [esp + 0x1054]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x104c]
call fcn.00404b17
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov dword [0x412d04], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]