Function at 0x402d80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da68
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4634b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], ecx
mov ecx, eax
mov dword [ebp - 0x60], eax
call fcn.00401960
test al, al
je 0x403647
mov edx, dword [ebp - 0x34]
cmp byte [edx + 0x34], 0
je 0x402dfd
mov ecx, edx
call fcn.00401d90
test al, al
je 0x403647
mov ecx, dword [ebp - 0x34]
call fcn.00401f80
test al, al
je 0x403647
mov edx, dword [ebp - 0x34]
mov byte [edx + 0x34], 0
mov ebx, dword [edx + 0x1c]
test esi, esi
mov edi, dword [edx + 0x18]
mov eax, 0x458f2c
cmovne eax, esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x54], eax
cmp edi, ebx
je 0x4030ef
jmp 0x402e20
mov esi, dword [edi]
mov edx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0x40], esi
cmp edx, esi
je 0x4030e1
mov ecx, dword [edx]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
cmp eax, ecx
je 0x4030d6
mov ebx, dword [ebp - 0x54]
mov bl, byte [ebx]
mov byte [ebp - 0x59], bl
jmp 0x402e50
mov esi, dword [eax]
add esi, 0xc
cmp byte [ebp - 0x59], 0
mov dword [ebp - 0x44], esi
jne 0x402e67
mov dword [ebp - 0x30], 0
jmp 0x402e83
mov esi, dword [ebp - 0x54]
lea ebx, [esi + 1]
mov dword [ebp - 0x48], ebx
mov bl, byte [esi]
inc esi
test bl, bl
jne 0x402e70
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x44]
sub dword [ebp - 0x30], ebx
cmp dword [esi + 0x14], 0x10
mov ebx, dword [esi + 0x10]
mov dword [ebp - 0x48], ebx
jb 0x402e94
mov esi, dword [esi]
mov dword [ebp - 0x44], esi
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x48]
cmp ebx, esi
cmovb esi, ebx
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x402f51
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x40]
jb 0x402edd
lea esp, [esp]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebx]
cmp ebx, dword [esi]
jne 0x402ee3
add dword [ebp - 0x44], 4
add dword [ebp - 0x3c], 4
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x40]
jae 0x402ec0
cmp dword [ebp - 0x4c], 0xfffffffc
je 0x402f41
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov bl, byte [ebx]
cmp bl, byte [esi]
mov esi, dword [ebp - 0x40]
jne 0x402f37
cmp dword [ebp - 0x4c], 0xfffffffd
je 0x402f41
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
mov esi, dword [ebp - 0x40]
jne 0x402f37
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x402f41
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
mov esi, dword [ebp - 0x40]
jne 0x402f37
cmp dword [ebp - 0x4c], 0xffffffff
je 0x402f41
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov bl, byte [ebx + 3]
cmp bl, byte [esi + 3]
mov esi, dword [ebp - 0x40]
je 0x402f41
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 0x3c], ebx
jmp 0x402f48
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
mov ebx, dword [ebp - 0x38]
jne 0x402f7d
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
jae 0x402f65
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x402f76
mov esi, dword [ebp - 0x48]
xor ebx, ebx
cmp esi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
setne bl
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
sete byte [ebp - 0x4d]
cmp byte [ebp - 0x4d], 0
je 0x4030cb
mov ebx, dword [eax]
add ebx, 0x24
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x58]
cmp byte [ebx], 0
jne 0x402fa4
mov dword [ebp - 0x3c], 0
jmp 0x402fc0
mov esi, ebx
lea ebx, [esi + 1]
mov dword [ebp - 0x48], ebx
lea esp, [esp]
mov bl, byte [esi]
inc esi
test bl, bl
jne 0x402fb0
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], esi
sub dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x44]
cmp dword [ebx + 0x14], 0x10
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x48], esi
jb 0x402fd4
mov ebx, dword [ebx]
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x48]
cmp esi, ebx
cmovb ebx, esi
mov dword [ebp - 0x4c], ebx
test ebx, ebx
je 0x403091
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x40]
jb 0x40301d
lea esp, [esp]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebx]
cmp ebx, dword [esi]
mov esi, dword [ebp - 0x40]
jne 0x403023
add dword [ebp - 0x44], 4
add dword [ebp - 0x30], 4
sub dword [ebp - 0x4c], 4
jae 0x403000
cmp dword [ebp - 0x4c], 0xfffffffc
je 0x403081
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov bl, byte [ebx]
cmp bl, byte [esi]
mov esi, dword [ebp - 0x40]
jne 0x403077
cmp dword [ebp - 0x4c], 0xfffffffd
je 0x403081
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov bl, byte [ebx + 1]
cmp bl, byte [esi + 1]
mov esi, dword [ebp - 0x40]
jne 0x403077
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x403081
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov bl, byte [ebx + 2]
cmp bl, byte [esi + 2]
mov esi, dword [ebp - 0x40]
jne 0x403077
cmp dword [ebp - 0x4c], 0xffffffff
je 0x403081
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov bl, byte [ebx + 3]
cmp bl, byte [esi + 3]
mov esi, dword [ebp - 0x40]
je 0x403081
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 0x30], ebx
jmp 0x403088
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x38]
jne 0x4030bd
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
jae 0x4030a5
mov dword [ebp - 0x30], 0xffffffff
jmp 0x4030b6
mov esi, dword [ebp - 0x48]
xor ebx, ebx
cmp esi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
setne bl
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x38]
cmp dword [ebp - 0x30], 0
sete byte [ebp - 0x4d]
cmp byte [ebp - 0x4d], 0
jne 0x40327a
add eax, 4
cmp eax, ecx
jne 0x402e50
add edx, 4
cmp edx, esi
jne 0x402e33
add edi, 4
cmp edi, ebx
jne 0x402e20
mov edx, dword [ebp - 0x34]
mov dword [ebp - 4], 0
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x1c]
mov dword [ebp - 0x48], ecx
cmp ecx, ebx
je 0x403643
mov esi, dword [ecx]
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
nop
cmp edi, esi
je 0x403667
push 0
push 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 0x54]
push 0
push 0
push dword [eax + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x403167
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x403154
mov eax, dword [edx + 0xc]
mov dword [eax + 4], 7
mov eax, dword [edx + 0xc]
mov dword [eax], 1
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
je 0x403195
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
jne 0x403182
mov eax, dword [edx + 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x4031c3
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x4031b0
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov eax, dword [edx + 0xc]
mov dword [eax], 1
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
je 0x4031f3
lea ecx, [ecx]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
jne 0x4031e0
mov eax, dword [edx + 0xc]
mov dword [eax], 0
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
je 0x403223
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x403210
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov eax, dword [edx + 0xc]
mov dword [eax], 1
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
je 0x403253
lea ecx, [ecx]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
jne 0x403240
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x54]
cmp byte [eax], 0
jne 0x403281
xor ecx, ecx
jmp 0x403292
mov eax, dword [eax]
jmp 0x403649
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403286
mov eax, dword [ebp - 0x54]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba70
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x4032ba
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x4032a7
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
push ecx
mov eax, dword [eax + 0xc]
add eax, 4
push eax
call fcn.00436140
mov ecx, dword [ebp - 0x34]
add esp, 0xc
mov eax, dword [ecx + 0xc]
mov dword [eax], 1
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
je 0x403304
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
jne 0x4032f1
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
cmp dword [ebp - 0x18], 0x10
jb 0x40331e
push dword [ebp - 0x2c]
call fcn.00434302
add esp, 4
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp byte [eax], 0
jne 0x40333c
xor ecx, ecx
jmp 0x40334d
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403341
mov eax, dword [ebp - 0x58]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ba70
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x403375
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x403362
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
inc eax
push eax
mov eax, dword [ebp - 0x34]
push ecx
mov eax, dword [eax + 0xc]
add eax, 4
push eax
call fcn.00436140
mov edx, dword [ebp - 0x34]
add esp, 0xc
mov eax, dword [edx + 0xc]
mov dword [eax], 1
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
je 0x4033c3
lea esp, [esp]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
jne 0x4033b0
mov eax, dword [edx + 0xc]
mov dword [eax], 0
cmp dword [ebp - 0x18], 0x10
jb 0x4033e0
push dword [ebp - 0x2c]
call fcn.00434302
mov edx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [edx + 0xc]
cmp dword [eax], 1
je 0x4033fb
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 1
jne 0x4033e8
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [eax], 2
test ecx, ecx
je 0x403632
push 0x54
call fcn.00434316
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403486
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x20], 0xf
mov dword [ebx + 0x1c], 0
mov byte [ebx + 0xc], 0
mov dword [ebx + 0x38], 0xf
mov dword [ebx + 0x34], 0
mov byte [ebx + 0x24], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x50], 0
jmp 0x403488
xor ebx, ebx
mov eax, dword [edi]
mov esi, dword [ebp - 0x58]
mov dword [ebx], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 4], eax
cmp byte [esi], 0
jne 0x40349e
xor ecx, ecx
jmp 0x4034ac
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034a3
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0x24]
call fcn.0040ba70
mov esi, dword [ebp - 0x54]
cmp byte [esi], 0
jne 0x4034c2
xor ecx, ecx
jmp 0x4034d0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034c7
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040ba70
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x4034f5
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x4034e5
mov eax, dword [esi + 0xc]
mov esi, ebx
mov dword [ebp - 0x54], esi
mov ecx, dword [eax + 4]
mov dword [eax], 2
mov dword [ebx + 8], ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
mov edi, dword [edi]
mov ecx, dword [edi + 0x28]
cmp eax, ecx
jae 0x4035ad
mov edx, dword [edi + 0x24]
cmp edx, eax
ja 0x4035ad
sub eax, edx
mov edx, dword [edi + 0x2c]
sar eax, 2
mov dword [ebp - 0x58], eax
cmp ecx, edx
jne 0x40358e
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40358e
sub ecx, dword [edi + 0x24]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jae 0x40355f
push 0x458e18
call fcn.0041e5cf
sub edx, dword [edi + 0x24]
inc ecx
sar edx, 2
mov eax, 0x3fffffff
mov dword [ebp - 0x48], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x40357c
xor edx, edx
jmp 0x40357e
add edx, ecx
cmp edx, dword [ebp - 0x48]
lea ecx, [edi + 0x24]
cmovb edx, dword [ebp - 0x48]
push edx
call fcn.00405f10
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x58]
mov edx, dword [edi + 0x28]
lea ecx, [eax + ecx*4]
test edx, edx
je 0x403616
mov eax, dword [ecx]
mov dword [ecx], 0
mov esi, dword [ebp - 0x54]
mov dword [edx], eax
jmp 0x403616
mov edx, dword [edi + 0x2c]
cmp ecx, edx
jne 0x40360b
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40360b
sub ecx, dword [edi + 0x24]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jae 0x4035dc
push 0x458e18
call fcn.0041e5cf
sub edx, dword [edi + 0x24]
inc ecx
sar edx, 2
mov eax, 0x3fffffff
mov dword [ebp - 0x48], ecx
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp eax, edx
jae 0x4035f9
xor edx, edx
jmp 0x4035fb
add edx, ecx
cmp edx, dword [ebp - 0x48]
lea ecx, [edi + 0x24]
cmovb edx, dword [ebp - 0x48]
push edx
call fcn.00405f10
mov eax, dword [edi + 0x28]
test eax, eax
je 0x403616
xor esi, esi
mov dword [eax], ebx
add dword [edi + 0x28], 4
test esi, esi
je 0x40362e
mov ecx, esi
call fcn.00405cb0
push esi
call fcn.00434302
add esp, 4
mov eax, ebx
jmp 0x403649
add edi, 4
jmp 0x403110
mov byte [edx + 0x34], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434307
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x48]
add ecx, 4
jmp 0x4030fc