Function at 0x402c80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b318
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45f4b0]
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 0x403547
mov edx, dword [ebp - 0x34]
cmp byte [edx + 0x34], 0
je 0x402cfd
mov ecx, edx
call fcn.00401d90
test al, al
je 0x403547
mov ecx, dword [ebp - 0x34]
call fcn.00401f80
test al, al
je 0x403547
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, 0x455f2c
cmovne eax, esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x54], eax
cmp edi, ebx
je 0x402fef
jmp 0x402d20
mov esi, dword [edi]
mov edx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0x40], esi
cmp edx, esi
je 0x402fe1
mov ecx, dword [edx]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
cmp eax, ecx
je 0x402fd6
mov ebx, dword [ebp - 0x54]
mov bl, byte [ebx]
mov byte [ebp - 0x59], bl
jmp 0x402d50
mov esi, dword [eax]
add esi, 0xc
cmp byte [ebp - 0x59], 0
mov dword [ebp - 0x44], esi
jne 0x402d67
mov dword [ebp - 0x30], 0
jmp 0x402d83
mov esi, dword [ebp - 0x54]
lea ebx, [esi + 1]
mov dword [ebp - 0x48], ebx
mov bl, byte [esi]
inc esi
test bl, bl
jne 0x402d70
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 0x402d94
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 0x402e51
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x54]
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp - 0x40]
jb 0x402ddd
lea esp, [esp]
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebx]
cmp ebx, dword [esi]
jne 0x402de3
add dword [ebp - 0x44], 4
add dword [ebp - 0x3c], 4
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x40]
jae 0x402dc0
cmp dword [ebp - 0x4c], 0xfffffffc
je 0x402e41
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x3c]
mov bl, byte [ebx]
cmp bl, byte [esi]
mov esi, dword [ebp - 0x40]
jne 0x402e37
cmp dword [ebp - 0x4c], 0xfffffffd
je 0x402e41
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 0x402e37
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x402e41
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 0x402e37
cmp dword [ebp - 0x4c], 0xffffffff
je 0x402e41
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 0x402e41
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 0x3c], ebx
jmp 0x402e48
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
mov ebx, dword [ebp - 0x38]
jne 0x402e7d
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x40]
jae 0x402e65
mov dword [ebp - 0x3c], 0xffffffff
jmp 0x402e76
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 0x402fcb
mov ebx, dword [eax]
add ebx, 0x24
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x58]
cmp byte [ebx], 0
jne 0x402ea4
mov dword [ebp - 0x3c], 0
jmp 0x402ec0
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 0x402eb0
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 0x402ed4
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 0x402f91
sub dword [ebp - 0x4c], 4
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x40]
jb 0x402f1d
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 0x402f23
add dword [ebp - 0x44], 4
add dword [ebp - 0x30], 4
sub dword [ebp - 0x4c], 4
jae 0x402f00
cmp dword [ebp - 0x4c], 0xfffffffc
je 0x402f81
mov ebx, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
mov bl, byte [ebx]
cmp bl, byte [esi]
mov esi, dword [ebp - 0x40]
jne 0x402f77
cmp dword [ebp - 0x4c], 0xfffffffd
je 0x402f81
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 0x402f77
cmp dword [ebp - 0x4c], 0xfffffffe
je 0x402f81
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 0x402f77
cmp dword [ebp - 0x4c], 0xffffffff
je 0x402f81
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 0x402f81
sbb ebx, ebx
or ebx, 1
mov dword [ebp - 0x30], ebx
jmp 0x402f88
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
mov ebx, dword [ebp - 0x38]
jne 0x402fbd
mov esi, dword [ebp - 0x48]
cmp esi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
jae 0x402fa5
mov dword [ebp - 0x30], 0xffffffff
jmp 0x402fb6
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 0x40317a
add eax, 4
cmp eax, ecx
jne 0x402d50
add edx, 4
cmp edx, esi
jne 0x402d33
add edi, 4
cmp edi, ebx
jne 0x402d20
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 0x403543
mov esi, dword [ecx]
mov edi, dword [esi + 4]
mov esi, dword [esi + 8]
nop
cmp edi, esi
je 0x403567
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 0x403067
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x403054
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 0x403095
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 2
jne 0x403082
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 0x4030c3
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 0
jne 0x4030b0
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 0x4030f3
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 0x4030e0
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 0x403123
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 0x403110
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 0x403153
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 0x403140
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 0x403181
xor ecx, ecx
jmp 0x403192
mov eax, dword [eax]
jmp 0x403549
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403186
mov eax, dword [ebp - 0x54]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a2f0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x4031ba
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x4031a7
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.00433a20
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 0x403204
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 2
jne 0x4031f1
mov eax, dword [ecx + 0xc]
mov dword [eax], 0
cmp dword [ebp - 0x18], 0x10
jb 0x40321e
push dword [ebp - 0x2c]
call fcn.00431bdf
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 0x40323c
xor ecx, ecx
jmp 0x40324d
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403241
mov eax, dword [ebp - 0x58]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a2f0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x403275
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
cmp dword [eax], 0
jne 0x403262
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.00433a20
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 0x4032c3
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 0x4032b0
mov eax, dword [edx + 0xc]
mov dword [eax], 0
cmp dword [ebp - 0x18], 0x10
jb 0x4032e0
push dword [ebp - 0x2c]
call fcn.00431bdf
mov edx, dword [ebp - 0x34]
add esp, 4
mov eax, dword [edx + 0xc]
cmp dword [eax], 1
je 0x4032fb
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
cmp dword [eax], 1
jne 0x4032e8
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
mov dword [eax], 2
test ecx, ecx
je 0x403532
push 0x54
call fcn.00431bf3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403386
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 0x403388
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 0x40339e
xor ecx, ecx
jmp 0x4033ac
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033a3
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0x24]
call fcn.0040a2f0
mov esi, dword [ebp - 0x54]
cmp byte [esi], 0
jne 0x4033c2
xor ecx, ecx
jmp 0x4033d0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033c7
sub ecx, edx
push ecx
push esi
lea ecx, [ebx + 0xc]
call fcn.0040a2f0
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
je 0x4033f5
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
cmp dword [eax], 1
jne 0x4033e5
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 0x4034ad
mov edx, dword [edi + 0x24]
cmp edx, eax
ja 0x4034ad
sub eax, edx
mov edx, dword [edi + 0x2c]
sar eax, 2
mov dword [ebp - 0x58], eax
cmp ecx, edx
jne 0x40348e
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40348e
sub ecx, dword [edi + 0x24]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jae 0x40345f
push 0x455e18
call fcn.0041beaf
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 0x40347c
xor edx, edx
jmp 0x40347e
add edx, ecx
cmp edx, dword [ebp - 0x48]
lea ecx, [edi + 0x24]
cmovb edx, dword [ebp - 0x48]
push edx
call fcn.004058f0
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp - 0x58]
mov edx, dword [edi + 0x28]
lea ecx, [eax + ecx*4]
test edx, edx
je 0x403516
mov eax, dword [ecx]
mov dword [ecx], 0
mov esi, dword [ebp - 0x54]
mov dword [edx], eax
jmp 0x403516
mov edx, dword [edi + 0x2c]
cmp ecx, edx
jne 0x40350b
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, 1
jae 0x40350b
sub ecx, dword [edi + 0x24]
mov eax, 0x3fffffff
sar ecx, 2
sub eax, ecx
cmp eax, 1
jae 0x4034dc
push 0x455e18
call fcn.0041beaf
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 0x4034f9
xor edx, edx
jmp 0x4034fb
add edx, ecx
cmp edx, dword [ebp - 0x48]
lea ecx, [edi + 0x24]
cmovb edx, dword [ebp - 0x48]
push edx
call fcn.004058f0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x403516
xor esi, esi
mov dword [eax], ebx
add dword [edi + 0x28], 4
test esi, esi
je 0x40352e
mov ecx, esi
call fcn.00405690
push esi
call fcn.00431bdf
add esp, 4
mov eax, ebx
jmp 0x403549
add edi, 4
jmp 0x403010
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.00431be4
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x48]
add ecx, 4
jmp 0x402ffc