Function at 0x4135e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x2b4
push ebx
push ebp
push esi
mov ebx, ecx
xor ebp, ebp
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push ebp
push 0x1032
push eax
call edi
mov esi, eax
cmp esi, 1
jl 0x413a45
push 0x80
mov dword [esp + 0x14], 0x4cc7c8
call fcn.004be967
mov dword [esp + 0x18], eax
add esp, 4
or eax, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x1f
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x40
jle 0x41373e
mov dword [esp + 0x30], esi
jmp 0x413654
mov eax, dword [esp + 0x44]
xor ebp, ebp
mov ecx, dword [ebx + 0xc]
push 2
push eax
push 0x100c
push ecx
call edi
lea edx, [esp + 0x48]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
push edx
push ebp
push 0x1005
push eax
mov dword [esp + 0x58], 4
mov dword [esp + 0x60], ebp
call edi
mov edx, dword [esp + 0x68]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4136a3
cmp eax, 1
jne 0x41372d
test ebp, ebp
je 0x41372d
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x413719
mov edx, dword [esp + 0x24]
add eax, edx
lea eax, [eax*4 + 4]
push eax
call fcn.004be967
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edi, eax
mov dword [esp + 0x30], eax
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push eax
call fcn.004be975
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
add eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x41364e
xor ebp, ebp
cmp dword [ebx + 0xc4], ebp
je 0x4137a7
mov edx, dword [ebx + 0xcc]
mov dword [ebx + 0xd0], 1
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7f02
push ebp
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov ebp, eax
mov eax, dword [ebx + 0xc4]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x413795
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [ebx + 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
xor ebp, ebp
mov eax, dword [ebx + 0xbc]
mov dword [ebx + 0xc4], ebp
cmp eax, ebp
mov dword [ebx + 0xd4], ebp
je 0x4137fe
mov edx, dword [ebx + 0xb4]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0xbc]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4137eb
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [ebx + 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xbc], ebp
mov edx, dword [ebx + 0xc]
push 1
push 0xffffffffffffffff
push 0x100c
push edx
call edi
cmp dword [esp + 0x18], ebp
je 0x413967
mov edx, dword [0x4eb218]
mov ecx, dword [0x4eb32c]
xor eax, eax
cmp edx, ebp
sete al
push eax
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [ebx + 0x20c]
push eax
push ecx
push ebp
lea ecx, [esp + 0x88]
call fcn.0042ef70
mov eax, dword [ebx + 0x994]
mov dword [esp + 0x34], ebp
cmp eax, ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
je 0x41388d
mov edx, dword [ebx + 0x200]
lea eax, [ebx + 0x9a0]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2b8], 0x409c30
mov dword [esp + 0x2bc], ecx
lea ecx, [esp + 0x70]
call fcn.0042f2c0
test eax, eax
je 0x413951
mov edx, dword [ebx + 8]
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push edx
call esi
mov eax, dword [ebx + 0x208]
mov ecx, dword [eax + 0x30]
cmp ecx, ebp
je 0x4138f5
call fcn.0045aeb0
test eax, eax
je 0x4138f5
mov ecx, dword [ebx + 8]
push 1
push ecx
call esi
mov edx, dword [ebx + 0x208]
mov ecx, dword [edx + 0x30]
cmp ecx, ebp
je 0x4138f5
call fcn.0045aeb0
test eax, eax
je 0x4138f5
mov ecx, dword [ebx + 0x208]
push ebp
push ebp
call fcn.0045fcf0
push ebp
mov ecx, ebx
call fcn.0041a080
lea ecx, [esp + 0x70]
call fcn.0042f2e0
cmp dword [ebx + 0x994], ebp
je 0x41390f
mov ecx, ebx
call fcn.004092d0
jmp 0x413928
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, 1
lea ecx, [esp + 0x10]
sete al
push eax
push ecx
mov ecx, ebx
call fcn.0041ff00
cmp dword [esp + 0x2c0], ebp
je 0x413951
cmp dword [0x4eb434], ebp
je 0x413951
mov edx, dword [0x4eb470]
mov ecx, ebx
push edx
call fcn.0041ec00
push 1
push ebp
mov ecx, ebx
call fcn.0041ce90
mov eax, dword [esp + 0x3c]
push eax
call fcn.004be975
add esp, 4
lea ecx, [esp + 0x70]
call fcn.0042f190
mov ecx, ebx
call fcn.004204e0
cmp dword [0x4eb46c], ebp
je 0x4139ec
cmp dword [ebx + 0xbc], ebp
je 0x4139c5
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebx + 0xbc]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4139ac
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebx + 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov dword [ebx + 0xbc], ebp
cmp eax, ebp
jne 0x4139ec
mov ecx, dword [ebx + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x2c]
push edx
push ebp
push ebx
push 0x411fb0
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xbc], eax
cmp dword [0x4eb21c], ebp
je 0x4139fc
push ebp
mov ecx, ebx
call fcn.00412600
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0x4cc7c8
cmp eax, ebp
je 0x413a38
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebp
jle 0x413a38
cmp esi, eax
jge 0x413a33
cmp esi, ebp
jl 0x413a33
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + esi*4]
cmp ecx, ebp
je 0x413a33
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x413a1a
mov eax, dword [esp + 0x14]
push eax
call fcn.004be975
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret