Function at 0x41e5a0
Capabilities:
Create thread
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x426cda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [esp + 0x11c]
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x12c]
push edi
lea edi, [ebp + 0x204]
mov ecx, 0x39
mov dword [ebp + 0x2e8], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x134]
mov dword [ebp + 0x102fc], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
add esi, 8
mov dword [ebp + 0x10d00], eax
lea ebx, [ebp + 0x268]
mov dword [esp + 0x18], esi
call fcn.0041e0a0
mov ecx, dword [ebp + 0x102fc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push ebx
add ecx, 0x43560
push esi
push ecx
lea edx, [esp + 0x2c]
push str._s_s__s_Send_d.log
push edx
call edi
mov eax, dword [esp + 0x148]
add esp, 0x18
lea esi, [ebp + 0x10300]
mov ecx, dword [eax + 0x3c]
mov al, byte [esp + 0x1c]
test al, al
mov dword [esp + 0x10], ecx
je 0x41e669
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x41e65e
cmp cl, 0x3a
jne 0x41e661
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e652
lea edx, [esp + 0x1c]
mov byte [esi], 0
push edx
push 0x43a874
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x80], 0
mov byte [esi + 0xa3], 1
mov dword [esi + 0x84], eax
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], 0
call fcn.0041e0a0
mov edx, dword [ebp + 0x102fc]
mov ecx, dword [esp + 0x18]
push eax
push ebx
add edx, 0x43560
push ecx
push edx
lea eax, [esp + 0x2c]
push str._s_s__s_Recv_d.log
push eax
call edi
mov ecx, dword [esp + 0x148]
mov al, byte [esp + 0x34]
add esp, 0x18
lea esi, [ebp + 0x103a4]
mov edx, dword [ecx + 0x38]
test al, al
mov dword [esp + 0x10], edx
je 0x41e712
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x41e707
cmp cl, 0x3a
jne 0x41e70a
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e6fb
lea eax, [esp + 0x1c]
mov byte [esi], 0
push eax
push 0x43a874
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x80], 0
mov byte [esi + 0xa3], 1
mov dword [esi + 0x84], ecx
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], 0
call fcn.0041e0a0
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0x102fc]
push ebx
add eax, 0x43560
push edx
push eax
lea ecx, [esp + 0x2c]
push str._s_s__s_System_d.log
push ecx
call edi
mov edx, dword [esp + 0x148]
add esp, 0x18
lea ecx, [ebp + 0x10448]
mov eax, dword [edx + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1c]
test al, al
je 0x41e7be
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x41e7b3
cmp cl, 0x3a
jne 0x41e7b6
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e7a7
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x43a874
push esi
mov byte [esi], 0
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x80], 0
mov byte [esi + 0xa3], 1
mov dword [esi + 0x84], eax
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], 0
call fcn.0041e0a0
mov edx, dword [ebp + 0x102fc]
mov ecx, dword [esp + 0x18]
push eax
push ebx
add edx, 0x43560
push ecx
push edx
lea eax, [esp + 0x2c]
push str._s_s__s_Hack_d.log
push eax
call edi
mov al, byte [esp + 0x34]
add esp, 0x18
test al, al
lea esi, [ebp + 0x104ec]
je 0x41e85d
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x41e852
cmp cl, 0x3a
jne 0x41e855
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x41e846
lea ecx, [esp + 0x1c]
mov byte [esi], 0
push ecx
push 0x43a874
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ebx, ebx
mov byte [esi + 0xa3], 1
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], 1
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], bl
mov ax, word [ebp + 0x20e]
cmp ax, 0x1400
jbe 0x41e8d5
mov edx, dword [esp + 0x10]
and eax, 0xffff
push 0x1400
push eax
push str._d____d_Over_Socket_Num
push edx
call fcn.00401596
add esp, 0x10
xor al, al
jmp 0x41f542
mov cl, byte [ebp + 0x21c]
cmp cl, 8
jbe 0x41e902
mov eax, dword [esp + 0x10]
and ecx, 0xff
push 8
push ecx
push str._d____d_Max_RecvThread_Num
push eax
call fcn.00401596
add esp, 0x10
xor al, al
jmp 0x41f542
and eax, 0xffff
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x10a1c]
shl esi, 2
cmp eax, ebx
jne 0x41e9ca
cmp dword [ebp + 0x10a40], ebx
ja 0x41e9ca
lea ecx, [esi + esi*2]
mov dword [ebp + 0x10a40], esi
shl ecx, 2
push ecx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41e95d
dec esi
cmp esi, ebx
jl 0x41e959
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41e94e
mov ecx, eax
jmp 0x41e95f
xor ecx, ecx
mov eax, dword [ebp + 0x10a40]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10a1c], ecx
jbe 0x41e9ca
lea esi, [ebp + 0x10a10]
xor eax, eax
mov dword [eax + ecx + 8], esi
mov ecx, dword [ebp + 0x10a1c]
mov edi, dword [ebp + 0x10a14]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10a1c]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10a14]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10a1c]
lea edi, [eax + ecx]
add eax, 0xc
mov dword [ebp + 0x10a14], edi
mov edi, dword [ebp + 0x10a3c]
inc edi
inc edx
mov dword [ebp + 0x10a3c], edi
mov edi, dword [ebp + 0x10a40]
cmp edx, edi
jb 0x41e979
xor eax, eax
mov ax, word [ebp + 0x20e]
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x10a74]
shl esi, 1
cmp eax, ebx
jne 0x41ea92
cmp dword [ebp + 0x10a98], ebx
ja 0x41ea92
lea edx, [esi + esi*2]
mov dword [ebp + 0x10a98], esi
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41ea25
dec esi
cmp esi, ebx
jl 0x41ea21
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41ea16
mov ecx, eax
jmp 0x41ea27
xor ecx, ecx
mov eax, dword [ebp + 0x10a98]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10a74], ecx
jbe 0x41ea92
lea esi, [ebp + 0x10a68]
xor eax, eax
mov dword [eax + ecx + 8], esi
mov ecx, dword [ebp + 0x10a74]
mov edi, dword [ebp + 0x10a6c]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10a74]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10a6c]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10a74]
lea edi, [eax + ecx]
add eax, 0xc
mov dword [ebp + 0x10a6c], edi
mov edi, dword [ebp + 0x10a94]
inc edi
inc edx
mov dword [ebp + 0x10a94], edi
mov edi, dword [ebp + 0x10a98]
cmp edx, edi
jb 0x41ea41
xor eax, eax
mov ax, word [ebp + 0x20e]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x10acc]
shl esi, 2
cmp eax, ebx
jne 0x41eb5e
cmp dword [ebp + 0x10af0], ebx
ja 0x41eb5e
lea edx, [esi + esi*2]
mov dword [ebp + 0x10af0], esi
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41eaf1
dec esi
cmp esi, ebx
jl 0x41eaed
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41eae2
mov ecx, eax
jmp 0x41eaf3
xor ecx, ecx
mov eax, dword [ebp + 0x10af0]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10acc], ecx
jbe 0x41eb5e
lea esi, [ebp + 0x10ac0]
xor eax, eax
mov dword [eax + ecx + 8], esi
mov ecx, dword [ebp + 0x10acc]
mov edi, dword [ebp + 0x10ac4]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10acc]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10ac4]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10acc]
lea edi, [eax + ecx]
add eax, 0xc
mov dword [ebp + 0x10ac4], edi
mov edi, dword [ebp + 0x10aec]
inc edi
inc edx
mov dword [ebp + 0x10aec], edi
mov edi, dword [ebp + 0x10af0]
cmp edx, edi
jb 0x41eb0d
xor eax, eax
mov ax, word [ebp + 0x20e]
lea esi, [eax + eax*4]
mov eax, dword [ebp + 0x10b24]
shl esi, 1
cmp eax, ebx
jne 0x41ec26
cmp dword [ebp + 0x10b48], ebx
ja 0x41ec26
lea edx, [esi + esi*2]
mov dword [ebp + 0x10b48], esi
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41ebb9
dec esi
cmp esi, ebx
jl 0x41ebb5
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41ebaa
mov ecx, eax
jmp 0x41ebbb
xor ecx, ecx
mov eax, dword [ebp + 0x10b48]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10b24], ecx
jbe 0x41ec26
lea esi, [ebp + 0x10b18]
xor eax, eax
mov dword [eax + ecx + 8], esi
mov ecx, dword [ebp + 0x10b24]
mov edi, dword [ebp + 0x10b1c]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10b24]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10b1c]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10b24]
lea edi, [eax + ecx]
add eax, 0xc
mov dword [ebp + 0x10b1c], edi
mov edi, dword [ebp + 0x10b44]
inc edi
inc edx
mov dword [ebp + 0x10b44], edi
mov edi, dword [ebp + 0x10b48]
cmp edx, edi
jb 0x41ebd5
xor eax, eax
mov ax, word [ebp + 0x20e]
mov ecx, eax
shr ecx, 6
and eax, 0x8000003f
mov dword [ebp + 0x102f8], ecx
jns 0x41ec46
dec eax
or eax, 0xffffffc0
inc eax
je 0x41ec4f
inc ecx
mov dword [ebp + 0x102f8], ecx
mov al, byte [0x43fc84]
mov edx, dword [str.null]
mov byte [esp + 0xa0], al
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0xa1]
mov dword [esp + 0x9c], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x9c]
lea eax, [ebp + 0x204]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00422610
test al, al
jne 0x41ecb7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x9c]
push edx
push str.m_NetSocket.SetSocket._fail_:__s
push eax
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
xor esi, esi
mov si, word [ebp + 0x20e]
lea ecx, [esi + esi*4]
shl ecx, 4
add ecx, 4
push ecx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x124], ebx
je 0x41ecfb
push fcn.0041f5c0
push 0x41f560
lea edi, [eax + 4]
push esi
push 0x50
push edi
mov dword [eax], esi
call fcn.00423880
jmp 0x41ecfd
xor edi, edi
xor esi, esi
or ebx, 0xffffffff
mov si, word [ebp + 0x20e]
mov dword [esp + 0x124], ebx
mov dword [ebp + 0x10594], edi
lea edx, [esi + esi*4]
shl edx, 4
add edx, 4
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x124], 1
je 0x41ed55
push fcn.0041f5c0
push 0x41f560
lea edi, [eax + 4]
push esi
push 0x50
push edi
mov dword [eax], esi
call fcn.00423880
jmp 0x41ed57
xor edi, edi
mov eax, dword [ebp + 0x10594]
mov dword [esp + 0x124], ebx
test eax, eax
mov dword [ebp + 0x10598], edi
jne 0x41ed8f
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
push eax
push str.SetProcess__d___m_pRecvBuffer_mem_alloc_fail
push ecx
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
test edi, edi
jne 0x41edb4
mov edx, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
push edx
push str.SetProcess__d___m_pSendBuffer_mem_alloc_fail
push eax
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
mov ecx, dword [ebp + 0x220]
push ecx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [ebp + 0x224]
mov dword [ebp + 0x10cf8], eax
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
add esp, 8
cmp word [ebp + 0x20e], bx
mov dword [ebp + 0x10cfc], eax
jbe 0x41ee5d
xor edi, edi
mov edx, dword [ebp + 0x10594]
mov ecx, dword [ebp + 0x10cfc]
mov eax, dword [ebp + 0x224]
mov esi, edi
add esi, edx
mov edx, dword [esi + 0x18]
test edx, edx
jne 0x41ee1b
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, eax
mov dword [esi + 0x4c], ecx
push eax
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x18], eax
mov esi, dword [ebp + 0x10598]
mov ecx, dword [ebp + 0x10cf8]
mov eax, dword [ebp + 0x220]
add esi, edi
mov edx, dword [esi + 0x18]
test edx, edx
jne 0x41ee4c
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, eax
mov dword [esi + 0x4c], ecx
push eax
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esi + 0x18], eax
xor eax, eax
inc ebx
mov ax, word [ebp + 0x20e]
add edi, 0x50
cmp ebx, eax
jl 0x41ede8
xor esi, esi
mov si, word [ebp + 0x20e]
lea ecx, [esi + esi*2]
lea edx, [ecx*8 + 4]
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x124], 2
cmp eax, ebx
je 0x41eeaa
push fcn.0040172b
push fcn.00401069
lea edi, [eax + 4]
push esi
push 0x18
push edi
mov dword [eax], esi
call fcn.00423880
mov eax, edi
jmp 0x41eeac
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x124], 0xffffffff
mov dword [ebp + 0x10590], eax
jne 0x41eee2
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
push eax
push str.SetProcess__d___m_csRecv_mem_alloc_fail
push ecx
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
mov ecx, dword [esp + 0x130]
cmp dword [ecx + 0x58], ebx
je 0x41f1c8
cmp dword [ebp + 0x10c10], ebx
je 0x41ef01
xor al, al
jmp 0x41f542
xor eax, eax
mov ax, word [ecx + 0xa]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp + 0x10c0c], eax
lea edx, [eax*8]
sub edx, eax
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp + 0x10c10], eax
mov eax, dword [ebp + 0x10c0c]
shl eax, 2
push eax
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 0x10c10]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x10c14], eax
jne 0x41ef6d
mov ecx, dword [esp + 0x12c]
mov edx, dword [esp + 0x10]
push ecx
push str.SetProcess__d___m_ndKeyCheck_mem_alloc_fail
push edx
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
cmp eax, ebx
jne 0x41ef92
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x10]
push eax
push str.SetProcess__d___m_dwKeyCheckBufferList_mem_alloc_fail
push ecx
call fcn.00401596
add esp, 0xc
xor al, al
jmp 0x41f542
cmp dword [ebp + 0x10c48], ebx
jne 0x41f050
cmp dword [ebp + 0x10c6c], ebx
ja 0x41f050
mov esi, dword [ebp + 0x10c0c]
mov dword [ebp + 0x10c6c], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41efe3
dec esi
cmp esi, ebx
jl 0x41efdf
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41efd4
mov ecx, eax
jmp 0x41efe5
xor ecx, ecx
mov eax, dword [ebp + 0x10c6c]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10c48], ecx
jbe 0x41f050
lea esi, [ebp + 0x10c3c]
xor eax, eax
mov dword [ecx + eax + 8], esi
mov ecx, dword [ebp + 0x10c48]
mov edi, dword [ebp + 0x10c40]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10c48]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10c40]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10c48]
lea edi, [ecx + eax]
add eax, 0xc
mov dword [ebp + 0x10c40], edi
mov edi, dword [ebp + 0x10c68]
inc edi
inc edx
mov dword [ebp + 0x10c68], edi
mov edi, dword [ebp + 0x10c6c]
cmp edx, edi
jb 0x41efff
cmp dword [ebp + 0x10ca0], ebx
jne 0x41f10e
cmp dword [ebp + 0x10cc4], ebx
ja 0x41f10e
mov esi, dword [ebp + 0x10c0c]
mov dword [ebp + 0x10cc4], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41f0a1
dec esi
cmp esi, ebx
jl 0x41f09d
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41f092
mov ecx, eax
jmp 0x41f0a3
xor ecx, ecx
mov eax, dword [ebp + 0x10cc4]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10ca0], ecx
jbe 0x41f10e
lea esi, [ebp + 0x10c94]
xor eax, eax
mov dword [ecx + eax + 8], esi
mov ecx, dword [ebp + 0x10ca0]
mov edi, dword [ebp + 0x10c98]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10ca0]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10c98]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10ca0]
lea edi, [ecx + eax]
add eax, 0xc
mov dword [ebp + 0x10c98], edi
mov edi, dword [ebp + 0x10cc0]
inc edi
inc edx
mov dword [ebp + 0x10cc0], edi
mov edi, dword [ebp + 0x10cc4]
cmp edx, edi
jb 0x41f0bd
mov eax, dword [ebp + 0x10c0c]
xor edi, edi
cmp eax, ebx
jle 0x41f1a1
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebp + 0x10ca4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10c90]
lea ecx, [ebp + 0x10c94]
cmp eax, ecx
je 0x41f193
mov edx, dword [eax + 8]
lea ecx, [ebp + 0x10c88]
mov dword [ebp + 0x10c90], edx
mov edx, dword [eax + 8]
mov dword [edx + 4], ecx
mov edx, dword [ebp + 0x10cc0]
dec edx
lea ecx, [ebp + 0x10c7c]
mov dword [ebp + 0x10cc0], edx
mov dword [eax], edi
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10c80]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x10c80]
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 0x10cbc]
inc ecx
mov dword [ebp + 0x10c80], eax
mov dword [ebp + 0x10cbc], ecx
push esi
call ebx
mov eax, dword [ebp + 0x10c0c]
inc edi
cmp edi, eax
jl 0x41f12a
mov edx, dword [esp + 0x130]
mov eax, dword [edx + 0x5c]
mov byte [ebp + 0x10cd0], 1
shr eax, 1
mov dword [ebp + 0x10cc8], eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebp + 0x10ccc], eax
xor ebx, ebx
cmp dword [ebp + 0x208], ebx
je 0x41f1f1
lea eax, [ebp + 0x1059c]
push eax
push ebx
push 0x41fda0
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call sub.MSVCRTD.dll__beginthread
add esp, 0xc
mov eax, dword [ebp + 0x102f8]
xor edi, edi
cmp eax, ebx
jle 0x41f22c
lea esi, [ebp + 0x105a8]
push esi
push ebx
push 0x41fec0
mov dword [esi], 1
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
call sub.MSVCRTD.dll__beginthread
mov eax, dword [ebp + 0x102f8]
add esp, 0xc
inc edi
add esi, 0xc
cmp edi, eax
jl 0x41f203
mov al, byte [ebp + 0x21c]
xor edi, edi
test al, al
jbe 0x41f269
lea esi, [ebp + 0x10974]
push esi
push ebx
push 0x420100
mov dword [esi], 1
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
call sub.MSVCRTD.dll__beginthread
xor eax, eax
add esp, 0xc
mov al, byte [ebp + 0x21c]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x41f23e
lea eax, [ebp + 0x109d4]
push eax
push ebx
push 0x420670
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call sub.MSVCRTD.dll__beginthread
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp eax, ebx
je 0x41f46f
cmp dword [ebp + 0x208], ebx
jne 0x41f469
xor eax, eax
mov ax, word [ebp + 0x20e]
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
mov dword [ebp + 0x10b4c], eax
mov eax, dword [ebp + 0x10b80]
add esp, 4
cmp eax, ebx
jne 0x41f385
cmp dword [ebp + 0x10ba4], ebx
ja 0x41f385
xor esi, esi
mov si, word [ebp + 0x20e]
mov dword [ebp + 0x10ba4], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41f318
dec esi
cmp esi, ebx
jl 0x41f314
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41f309
mov ecx, eax
jmp 0x41f31a
xor ecx, ecx
mov eax, dword [ebp + 0x10ba4]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10b80], ecx
jbe 0x41f385
lea esi, [ebp + 0x10b74]
xor eax, eax
mov dword [ecx + eax + 8], esi
mov ecx, dword [ebp + 0x10b80]
mov edi, dword [ebp + 0x10b78]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10b80]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10b78]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10b80]
lea edi, [ecx + eax]
add eax, 0xc
mov dword [ebp + 0x10b78], edi
mov edi, dword [ebp + 0x10ba0]
inc edi
inc edx
mov dword [ebp + 0x10ba0], edi
mov edi, dword [ebp + 0x10ba4]
cmp edx, edi
jb 0x41f334
cmp dword [ebp + 0x10bd8], ebx
jne 0x41f446
cmp dword [ebp + 0x10bfc], ebx
ja 0x41f446
xor esi, esi
mov si, word [ebp + 0x20e]
mov dword [ebp + 0x10bfc], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x41f3d9
dec esi
cmp esi, ebx
jl 0x41f3d5
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x41f3ca
mov ecx, eax
jmp 0x41f3db
xor ecx, ecx
mov eax, dword [ebp + 0x10bfc]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10bd8], ecx
jbe 0x41f446
lea esi, [ebp + 0x10bcc]
xor eax, eax
mov dword [ecx + eax + 8], esi
mov ecx, dword [ebp + 0x10bd8]
mov edi, dword [ebp + 0x10bd0]
mov dword [eax + ecx + 4], edi
mov edi, dword [ebp + 0x10bd8]
mov ecx, eax
add ecx, edi
mov edi, dword [ebp + 0x10bd0]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x10bd8]
lea edi, [ecx + eax]
add eax, 0xc
mov dword [ebp + 0x10bd0], edi
mov edi, dword [ebp + 0x10bf8]
inc edi
inc edx
mov dword [ebp + 0x10bf8], edi
mov edi, dword [ebp + 0x10bfc]
cmp edx, edi
jb 0x41f3f5
lea eax, [ebp + 0x109e0]
push eax
push ebx
push 0x4222a0
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call sub.MSVCRTD.dll__beginthread
add esp, 0xc
jmp 0x41f46f
mov dword [ebp + 0x254], ebx
xor esi, esi
mov si, word [ebp + 0x20e]
lea esi, [esi + esi*4]
shl esi, 1
je 0x41f4df
cmp esi, 0xffff
ja 0x41f4df
lea edx, [esi + esi*2]
mov dword [ebp + 0x140], esi
shl edx, 2
push edx
call sub.MSVCRTD.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [ebp + 0x148]
mov dword [ebp + 0x144], eax
push 0x9c4
call fcn.0040157d
push esi
lea ecx, [ebp + 0x154]
call fcn.004010be
lea ebx, [ebp + 0x1ac]
push esi
mov ecx, ebx
call fcn.004010be
xor edi, edi
test esi, esi
jbe 0x41f4df
push edi
mov ecx, ebx
call fcn.004011a4
inc edi
cmp edi, esi
jb 0x41f4d2
mov byte [ebp + 0x10cdc], 1
mov dword [ebp + 0x10cd4], 0x3e8
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0x3e8
lea ecx, [ebp + 0x10ce0]
mov dword [ebp + 0x10cd8], eax
call fcn.0040157d
push 0x3e8
lea ecx, [ebp + 0x10cec]
call fcn.0040157d
xor eax, eax
mov byte [ebp + 0x102f4], 1
mov dword [ebp + 0x2ec], eax
mov dword [ebp + 0x2f0], eax
add ebp, 0x2f4
mov ecx, 0x4000
mov edi, ebp
rep stosd dword es:[edi], eax
mov al, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret 0xc