Function at 0x47b590
Capabilities:
Create thread
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4a9d7a
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.0047f190
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 0x47b659
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x47b64e
cmp cl, 0x3a
jne 0x47b651
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47b642
lea edx, [esp + 0x1c]
mov byte [esi], 0
push edx
push 0x4c40f0
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.0047f190
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 0x47b702
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x47b6f7
cmp cl, 0x3a
jne 0x47b6fa
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47b6eb
lea eax, [esp + 0x1c]
mov byte [esi], 0
push eax
push 0x4c40f0
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.0047f190
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 0x47b7ae
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x47b7a3
cmp cl, 0x3a
jne 0x47b7a6
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47b797
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x4c40f0
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.0047f190
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 0x47b84d
lea eax, [esp + 0x1c]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x47b842
cmp cl, 0x3a
jne 0x47b845
mov byte [eax], 0x5f
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x47b836
lea ecx, [esp + 0x1c]
mov byte [esi], 0
push ecx
push 0x4c40f0
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 0x47b8c5
mov edx, dword [esp + 0x10]
and eax, 0xffff
push 0x1400
push eax
push str._d____d_Over_Socket_Num
push edx
call fcn.0047d250
add esp, 0x10
xor al, al
jmp 0x47c532
mov cl, byte [ebp + 0x21c]
cmp cl, 8
jbe 0x47b8f2
mov eax, dword [esp + 0x10]
and ecx, 0xff
push 8
push ecx
push str._d____d_Max_RecvThread_Num
push eax
call fcn.0047d250
add esp, 0x10
xor al, al
jmp 0x47c532
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 0x47b9ba
cmp dword [ebp + 0x10a40], ebx
ja 0x47b9ba
lea ecx, [esi + esi*2]
mov dword [ebp + 0x10a40], esi
shl ecx, 2
push ecx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47b94d
dec esi
cmp esi, ebx
jl 0x47b949
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47b93e
mov ecx, eax
jmp 0x47b94f
xor ecx, ecx
mov eax, dword [ebp + 0x10a40]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10a1c], ecx
jbe 0x47b9ba
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 0x47b969
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 0x47ba82
cmp dword [ebp + 0x10a98], ebx
ja 0x47ba82
lea edx, [esi + esi*2]
mov dword [ebp + 0x10a98], esi
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47ba15
dec esi
cmp esi, ebx
jl 0x47ba11
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47ba06
mov ecx, eax
jmp 0x47ba17
xor ecx, ecx
mov eax, dword [ebp + 0x10a98]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10a74], ecx
jbe 0x47ba82
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 0x47ba31
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 0x47bb4e
cmp dword [ebp + 0x10af0], ebx
ja 0x47bb4e
lea edx, [esi + esi*2]
mov dword [ebp + 0x10af0], esi
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47bae1
dec esi
cmp esi, ebx
jl 0x47badd
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47bad2
mov ecx, eax
jmp 0x47bae3
xor ecx, ecx
mov eax, dword [ebp + 0x10af0]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10acc], ecx
jbe 0x47bb4e
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 0x47bafd
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 0x47bc16
cmp dword [ebp + 0x10b48], ebx
ja 0x47bc16
lea edx, [esi + esi*2]
mov dword [ebp + 0x10b48], esi
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47bba9
dec esi
cmp esi, ebx
jl 0x47bba5
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47bb9a
mov ecx, eax
jmp 0x47bbab
xor ecx, ecx
mov eax, dword [ebp + 0x10b48]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10b24], ecx
jbe 0x47bc16
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 0x47bbc5
xor eax, eax
mov ax, word [ebp + 0x20e]
mov ecx, eax
shr ecx, 6
and eax, 0x8000003f
mov dword [ebp + 0x102f8], ecx
jns 0x47bc36
dec eax
or eax, 0xffffffc0
inc eax
je 0x47bc3f
inc ecx
mov dword [ebp + 0x102f8], ecx
mov al, byte [0x4cce6c]
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.0047f3f0
test al, al
jne 0x47bca7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x9c]
push edx
push str.m_NetSocket.SetSocket._fail_:__s
push eax
call fcn.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
xor esi, esi
mov si, word [ebp + 0x20e]
lea ecx, [esi + esi*4]
shl ecx, 4
add ecx, 4
push ecx
call fcn.0049d757
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x124], ebx
je 0x47bceb
push 0x47c5b0
push 0x47c550
lea edi, [eax + 4]
push esi
push 0x50
push edi
mov dword [eax], esi
call fcn.004887b2
jmp 0x47bced
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 fcn.0049d757
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x124], 1
je 0x47bd45
push 0x47c5b0
push 0x47c550
lea edi, [eax + 4]
push esi
push 0x50
push edi
mov dword [eax], esi
call fcn.004887b2
jmp 0x47bd47
xor edi, edi
mov eax, dword [ebp + 0x10594]
mov dword [esp + 0x124], ebx
test eax, eax
mov dword [ebp + 0x10598], edi
jne 0x47bd7f
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.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
test edi, edi
jne 0x47bda4
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.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
mov ecx, dword [ebp + 0x220]
push ecx
call fcn.0049d757
mov edx, dword [ebp + 0x224]
mov dword [ebp + 0x10cf8], eax
push edx
call fcn.0049d757
xor ebx, ebx
add esp, 8
cmp word [ebp + 0x20e], bx
mov dword [ebp + 0x10cfc], eax
jbe 0x47be4d
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 0x47be0b
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, eax
mov dword [esi + 0x4c], ecx
push eax
call fcn.0049d757
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 0x47be3c
mov dword [esi], eax
mov dword [esi + 4], eax
add eax, eax
mov dword [esi + 0x4c], ecx
push eax
call fcn.0049d757
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 0x47bdd8
xor esi, esi
mov si, word [ebp + 0x20e]
lea ecx, [esi + esi*2]
lea edx, [ecx*8 + 4]
push edx
call fcn.0049d757
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x124], 2
cmp eax, ebx
je 0x47be9a
push 0x47c640
push 0x47c630
lea edi, [eax + 4]
push esi
push 0x18
push edi
mov dword [eax], esi
call fcn.004887b2
mov eax, edi
jmp 0x47be9c
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x124], 0xffffffff
mov dword [ebp + 0x10590], eax
jne 0x47bed2
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.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
mov ecx, dword [esp + 0x130]
cmp dword [ecx + 0x58], ebx
je 0x47c1b8
cmp dword [ebp + 0x10c10], ebx
je 0x47bef1
xor al, al
jmp 0x47c532
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 fcn.0049d757
mov dword [ebp + 0x10c10], eax
mov eax, dword [ebp + 0x10c0c]
shl eax, 2
push eax
call fcn.0049d757
mov ecx, dword [ebp + 0x10c10]
add esp, 8
cmp ecx, ebx
mov dword [ebp + 0x10c14], eax
jne 0x47bf5d
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.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
cmp eax, ebx
jne 0x47bf82
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.0047d250
add esp, 0xc
xor al, al
jmp 0x47c532
cmp dword [ebp + 0x10c48], ebx
jne 0x47c040
cmp dword [ebp + 0x10c6c], ebx
ja 0x47c040
mov esi, dword [ebp + 0x10c0c]
mov dword [ebp + 0x10c6c], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47bfd3
dec esi
cmp esi, ebx
jl 0x47bfcf
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47bfc4
mov ecx, eax
jmp 0x47bfd5
xor ecx, ecx
mov eax, dword [ebp + 0x10c6c]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10c48], ecx
jbe 0x47c040
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 0x47bfef
cmp dword [ebp + 0x10ca0], ebx
jne 0x47c0fe
cmp dword [ebp + 0x10cc4], ebx
ja 0x47c0fe
mov esi, dword [ebp + 0x10c0c]
mov dword [ebp + 0x10cc4], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47c091
dec esi
cmp esi, ebx
jl 0x47c08d
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47c082
mov ecx, eax
jmp 0x47c093
xor ecx, ecx
mov eax, dword [ebp + 0x10cc4]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10ca0], ecx
jbe 0x47c0fe
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 0x47c0ad
mov eax, dword [ebp + 0x10c0c]
xor edi, edi
cmp eax, ebx
jle 0x47c191
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 0x47c183
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 0x47c11a
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 0x47c1e1
lea eax, [ebp + 0x1059c]
push eax
push ebx
push 0x47cef0
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call fcn.004897a2
add esp, 0xc
mov eax, dword [ebp + 0x102f8]
xor edi, edi
cmp eax, ebx
jle 0x47c21c
lea esi, [ebp + 0x105a8]
push esi
push ebx
push 0x47d010
mov dword [esi], 1
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
call fcn.004897a2
mov eax, dword [ebp + 0x102f8]
add esp, 0xc
inc edi
add esi, 0xc
cmp edi, eax
jl 0x47c1f3
mov al, byte [ebp + 0x21c]
xor edi, edi
test al, al
jbe 0x47c259
lea esi, [ebp + 0x10974]
push esi
push ebx
push 0x47d400
mov dword [esi], 1
mov dword [esi + 4], ebp
mov dword [esi + 8], edi
call fcn.004897a2
xor eax, eax
add esp, 0xc
mov al, byte [ebp + 0x21c]
inc edi
add esi, 0xc
cmp edi, eax
jl 0x47c22e
lea eax, [ebp + 0x109d4]
push eax
push ebx
push 0x47d9d0
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call fcn.004897a2
mov eax, dword [ebp + 0x254]
add esp, 0xc
cmp eax, ebx
je 0x47c45f
cmp dword [ebp + 0x208], ebx
jne 0x47c459
xor eax, eax
mov ax, word [ebp + 0x20e]
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call fcn.0049d757
mov dword [ebp + 0x10b4c], eax
mov eax, dword [ebp + 0x10b80]
add esp, 4
cmp eax, ebx
jne 0x47c375
cmp dword [ebp + 0x10ba4], ebx
ja 0x47c375
xor esi, esi
mov si, word [ebp + 0x20e]
mov dword [ebp + 0x10ba4], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47c308
dec esi
cmp esi, ebx
jl 0x47c304
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47c2f9
mov ecx, eax
jmp 0x47c30a
xor ecx, ecx
mov eax, dword [ebp + 0x10ba4]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10b80], ecx
jbe 0x47c375
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 0x47c324
cmp dword [ebp + 0x10bd8], ebx
jne 0x47c436
cmp dword [ebp + 0x10bfc], ebx
ja 0x47c436
xor esi, esi
mov si, word [ebp + 0x20e]
mov dword [ebp + 0x10bfc], esi
lea edx, [esi + esi*2]
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
cmp eax, ebx
je 0x47c3c9
dec esi
cmp esi, ebx
jl 0x47c3c5
lea ecx, [eax + 8]
lea edx, [esi + 1]
mov dword [ecx - 4], ebx
mov dword [ecx], ebx
add ecx, 0xc
dec edx
jne 0x47c3ba
mov ecx, eax
jmp 0x47c3cb
xor ecx, ecx
mov eax, dword [ebp + 0x10bfc]
xor edx, edx
cmp eax, ebx
mov dword [ebp + 0x10bd8], ecx
jbe 0x47c436
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 0x47c3e5
lea eax, [ebp + 0x109e0]
push eax
push ebx
push 0x47efb0
mov dword [eax], 1
mov dword [eax + 4], ebp
mov dword [eax + 8], ebx
call fcn.004897a2
add esp, 0xc
jmp 0x47c45f
mov dword [ebp + 0x254], ebx
xor esi, esi
mov si, word [ebp + 0x20e]
lea esi, [esi + esi*4]
shl esi, 1
je 0x47c4cf
cmp esi, 0xffff
ja 0x47c4cf
lea edx, [esi + esi*2]
mov dword [ebp + 0x140], esi
shl edx, 2
push edx
call fcn.0049d757
add esp, 4
lea ecx, [ebp + 0x148]
mov dword [ebp + 0x144], eax
push 0x9c4
call fcn.0047c610
push esi
lea ecx, [ebp + 0x154]
call fcn.0047c710
lea ebx, [ebp + 0x1ac]
push esi
mov ecx, ebx
call fcn.0047c710
xor edi, edi
test esi, esi
jbe 0x47c4cf
push edi
mov ecx, ebx
call fcn.0047c7c0
inc edi
cmp edi, esi
jb 0x47c4c2
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.0047c610
push 0x3e8
lea ecx, [ebp + 0x10cec]
call fcn.0047c610
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