Function at 0x5069e0
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xfffffffffffffffe
push 0x673168
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x110]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0x114]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x124]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x60], eax
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], ebx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0xa4], ebx
push 0x40
push ebx
lea ecx, [ebp - 0xa0]
push ecx
call fcn.005dfd60
mov dword [ebp - 0x20], ebx
mov byte [ebp], bl
push 0x103
push ebx
lea edx, [ebp + 1]
push edx
call fcn.005dfd60
add esp, 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], ebx
push ebx
call fcn.00503120
mov esi, eax
mov dword [ebp - 0x28], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.004d9f10
mov dword [ebp - 0x20], 0xffffffff
push 0x44
push ebx
lea ecx, [ebp - 0xa4]
push ecx
call fcn.005dfd60
add esp, 0x38
mov dword [ebp - 0xa4], 0x44
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
xor edx, edx
mov word [ebp - 0x72], dx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp + 0x11c]
mov ecx, 1
sub eax, ecx
je 0x506b46
sub eax, ecx
je 0x506b34
sub eax, ecx
jne 0x506b52
mov dword [ebp - 0x78], ecx
mov eax, 6
mov word [ebp - 0x74], ax
jmp 0x506b52
mov dword [ebp - 0x78], ecx
xor ecx, ecx
mov word [ebp - 0x74], cx
mov dword [ebp - 0x28], 0x8000020
jmp 0x506b52
mov dword [ebp - 0x78], ecx
mov edx, 5
mov word [ebp - 0x74], dx
mov eax, dword [ebp + 0x120]
cmp eax, 0xffffffff
je 0x506b60
mov dword [ebp - 0x24], eax
xor edi, edi
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x506b71
cmp byte [eax], bl
je 0x506b71
mov edi, eax
jmp 0x506b89
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004ec840
add esp, 8
cmp byte [ebp], bl
je 0x506b89
lea edi, [ebp]
cmp esi, ebx
jne 0x506bf2
cmp dword [ebp - 0x1c], ebx
je 0x506ba3
push ebx
lea edx, [ebp - 0x5c]
push edx
push ebx
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp esi, ebx
jne 0x506bf2
cmp dword [ebp - 0x38], ebx
jne 0x506bbb
cmp dword [ebp - 0x3c], ebx
jne 0x506bbb
mov esi, dword [ebp + 0x118]
cmp esi, ebx
je 0x506bf8
call fcn.004f9a60
mov esi, eax
cmp esi, 1
je 0x506bf2
call fcn.004d99e0
test eax, eax
je 0x506bd5
cmp esi, 1
jbe 0x506bf2
cmp dword [ebp - 0x1c], ebx
je 0x506be9
push 3
push ebx
push ebx
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call fcn.004dba40
add esp, 4
mov esi, dword [ebp + 0x118]
mov eax, dword [ebp - 0x50]
cmp eax, ebx
jne 0x506c27
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xa4]
push ecx
push edi
push ebx
mov edx, dword [ebp - 0x28]
push edx
push ebx
push ebx
push ebx
mov eax, dword [ebp - 0x30]
push eax
push ebx
call fcn.004d87f0
add esp, 0x28
mov edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x506c4e
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0xa4]
push edx
push edi
push ebx
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
push ebx
push ebx
mov edx, dword [ebp - 0x30]
push edx
push ebx
push eax
call fcn.004d8890
add esp, 0x2c
mov dword [ebp - 0x1c], eax
mov edi, eax
mov dword [ebp - 0x20], 0x103
cmp edi, ebx
jne 0x506c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
jmp 0x506c67
mov dword [ebp - 0x2c], ebx
cmp dword [ebp + 0x120], 0xffffffff
je 0x506c7b
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebp - 0x24], eax
cmp edi, 1
jne 0x506caa
cmp dword [ebp + 0x12c], edi
jne 0x506caa
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
push 0x4e9010
call fcn.005e07ac
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, ebx
jne 0x506cb0
push 0x32
call edi
jmp 0x506cb0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x506d4d
cmp esi, 1
jne 0x506cf4
cmp dword [ebp - 0x20], 0x103
jne 0x506d34
push 0x64
call edi
cmp dword [ebp + 0x120], 0xffffffff
je 0x506ce1
cmp dword [ebp - 0x24], ebx
jle 0x506ce1
sub dword [ebp - 0x24], 1
je 0x506d31
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x1c]
jmp 0x506cc0
jle 0x506d34
cmp dword [ebp - 0x20], 0x103
jne 0x506d24
cmp esi, ebx
je 0x506d28
push 0x3e8
call edi
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
dec esi
mov dword [ebp + 0x118], esi
mov eax, dword [ebp - 0x1c]
jmp 0x506cf6
cmp esi, ebx
jne 0x506d34
mov dword [ebp - 0x34], 1
jmp 0x506d34
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x506d4d
lea eax, [ebp - 0x48]
push eax
call fcn.004dca10
lea ecx, [ebp - 0x4c]
push ecx
call fcn.004dca10
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], 1
jne 0x506d6a
push 0x61bcc0
call fcn.0050c680
add esp, 4
mov dword [ebp - 0x20], 6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x60]
cmp ecx, ebx
je 0x506da3
cmp dword [ecx], 0x1e240
jne 0x506d84
neg eax
sbb eax, eax
and eax, dword [ebp - 0x44]
mov dword [ecx], eax
jmp 0x506da3
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
jmp 0x506da3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x108
mov esp, ebp
pop ebp
ret 0x20