Function at 0x4ae320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cd131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc90
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea eax, [ebp + 0x62750]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
xor esi, esi
push 0xc80
mov dword [esp + 0xcac], esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x4ae416
lea edx, [ebx + 0x48]
mov ecx, 0x28b
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0x30e
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, 0x30e
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x1c]
xor ecx, ecx
xor edx, edx
mov edi, ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
lea eax, [ebx + 0x2c]
mov ecx, 0x320
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
or eax, 0xffffffff
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 8], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x18], esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x60c]
mov edi, dword [esp + 0xcb0]
or eax, 0xffffffff
cmp ecx, esi
je 0x4ae465
cmp edi, esi
jle 0x4ae42f
cmp edi, 0xc350
jge 0x4ae42f
mov edx, dword [ebp + edi*4 + 0xc50]
cmp edx, esi
je 0x4ae465
jmp 0x4ae442
cmp dword [esp + 0x14], esi
je 0x4ae427
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4aedbb
cmp edi, 0x4190ab00
jl 0x4ae465
mov edx, dword [ebp + edi*4 - 0x63f9270]
cmp edx, esi
je 0x4ae465
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4ae465
cmp eax, dword [ebp + 0x624]
jge 0x4ae462
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
shl edx, 7
add edx, ecx
je 0x4ae462
cmp dword [edx], edi
je 0x4ae465
or eax, 0xffffffff
mov edx, eax
mov dword [esp + 0x18], eax
mov edi, ebx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
shl eax, 7
mov dword [esp + 0x48], eax
lea esi, [eax + ecx]
mov al, byte [esp + 0x1f]
mov ecx, 0x320
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov byte [esp + 0x24], al
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov eax, dword [ebx + 8]
inc edx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x624]
mov edi, edx
mov byte [esp + 0xca8], 1
cmp edi, eax
mov dword [esp + 0x4c], edx
jge 0x4ae57d
mov edx, dword [ebp + 0x60c]
lea eax, [edi + edi*4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x38], ecx
shl eax, 7
mov esi, eax
add esi, edx
je 0x4ae57d
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x4ae57d
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x60]
dec ecx
push edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [esp + 0x60]
lea eax, [esi + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x40], ecx
push 1
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], esi
call fcn.004a94b0
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x624]
inc edi
add ecx, 0xc80
cmp edi, eax
mov dword [esp + 0x20], ecx
jge 0x4ae57d
mov eax, dword [ebp + 0x60c]
mov esi, ecx
add esi, eax
jne 0x4ae4e7
mov edx, dword [ebp + 0x60c]
or esi, 0xffffffff
test edx, edx
je 0x4ae5dd
mov ecx, dword [esp + 0xcb4]
test ecx, ecx
jle 0x4ae5aa
cmp ecx, 0xc350
jge 0x4ae5aa
mov eax, dword [ebp + ecx*4 + 0xc50]
test eax, eax
je 0x4ae5e0
jmp 0x4ae5bd
cmp ecx, 0x4190ab00
jl 0x4ae5e0
mov eax, dword [ebp + ecx*4 - 0x63f9270]
test eax, eax
je 0x4ae5e0
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4ae5e0
cmp esi, dword [ebp + 0x624]
jge 0x4ae5dd
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
je 0x4ae5dd
cmp dword [eax], ecx
je 0x4ae5e0
or esi, 0xffffffff
lea eax, [esi + esi*4]
mov ecx, dword [ebx + 4]
push ecx
mov ecx, ebp
lea edi, [eax + eax*4]
lea eax, [ebx + 0x48]
shl edi, 7
add edi, edx
push eax
mov dword [esp + 0x28], edi
mov edx, dword [edi + 8]
push edx
call fcn.004ad590
cmp eax, 0xffffffff
jle 0x4aeb11
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 2
cmp ecx, esi
je 0x4ae651
push ebx
call fcn.00495c27
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4ae63d
mov eax, dword [esp + 0x10]
push eax
call edi
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0xcb0]
push ecx
mov ecx, ebp
call fcn.004b6480
jmp 0x4aeabd
cmp dword [ebp + 0x14], esi
jne 0x4ae9d6
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x482]
mov word [esp + 0x480], bx
mov edx, dword [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x68a]
mov word [esp + 0x688], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x480]
stosw word es:[edi], ax
mov eax, dword [edx + 8]
test ecx, ecx
je 0x4ae824
cmp eax, ebx
je 0x4ae824
cmp eax, esi
jne 0x4ae6d9
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x480]
push edx
push 0x4de3ac
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4ae824
push eax
mov ecx, ebp
call fcn.004b1710
cmp eax, 0xffffffff
je 0x4ae824
mov edx, dword [ebp + 0x60c]
lea eax, [eax + eax*4]
mov dword [esp + 0x18], ebx
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
cmp dword [eax + 4], esi
jne 0x4ae70c
mov dword [esp + 0x18], 1
mov esi, dword [eax]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x72]
mov word [esp + 0x70], 0
cmp esi, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4ae7ad
push esi
mov ecx, ebp
call fcn.004b1710
cmp eax, 0xffffffff
je 0x4ae824
mov esi, dword [ebp + 0x60c]
lea eax, [eax + eax*4]
mov ecx, 0x81
lea edi, [esp + 0x27a]
lea ebx, [eax + eax*4]
xor eax, eax
shl ebx, 7
add ebx, esi
lea edx, [esp + 0x278]
mov esi, dword [ebx + 8]
mov word [esp + 0x278], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x70]
push ecx
push 0x4de3ac
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x278]
add ebx, 0x48
lea ecx, [esp + 0x70]
push eax
push ebx
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
cmp esi, 2
jne 0x4ae72d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x278]
push 0x104
push edx
stosw word es:[edi], ax
call fcn.004b7b80
lea eax, [esp + 0x280]
push 0
push eax
call fcn.004c5370
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x70]
lea edx, [esp + 0x278]
test eax, eax
push ecx
push edx
je 0x4ae809
push 0x4de7b4
jmp 0x4ae80e
push str._s_s.url
lea eax, [esp + 0x48c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x688]
test ecx, ecx
je 0x4ae9b8
cmp dword [ebp + 0x14], 2
jne 0x4ae9b8
mov eax, dword [esp + 0xcb0]
test eax, eax
je 0x4ae9b8
cmp eax, 2
jne 0x4ae878
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x688]
push edx
push 0x4de3ac
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4ae9b8
push eax
mov ecx, ebp
call fcn.004b1710
cmp eax, 0xffffffff
je 0x4ae9b8
mov edx, dword [ebp + 0x60c]
lea eax, [eax + eax*4]
mov dword [esp + 0x18], 0
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
cmp dword [eax + 4], 2
jne 0x4ae8b0
mov dword [esp + 0x18], 1
mov esi, dword [eax]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], 0
cmp esi, 2
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x4ae94d
push esi
mov ecx, ebp
call fcn.004b1710
cmp eax, 0xffffffff
je 0x4ae9b8
mov esi, dword [ebp + 0x60c]
lea eax, [eax + eax*4]
mov ecx, 0x81
lea edi, [esp + 0x72]
lea ebx, [eax + eax*4]
xor eax, eax
shl ebx, 7
add ebx, esi
lea edx, [esp + 0x70]
mov esi, dword [ebx + 8]
mov word [esp + 0x70], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x278]
push ecx
push 0x4de3ac
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [esp + 0x70]
add ebx, 0x48
lea ecx, [esp + 0x278]
push eax
push ebx
push str._s_s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
cmp esi, 2
jne 0x4ae8d3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x72]
mov word [esp + 0x70], 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x70]
push 0x104
push edx
stosw word es:[edi], ax
call fcn.004b7b80
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004c5370
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x278]
lea edx, [esp + 0x70]
test eax, eax
push ecx
push edx
je 0x4ae99d
push 0x4de7b4
jmp 0x4ae9a2
push str._s_s.url
lea eax, [esp + 0x694]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x688]
push 4
lea edx, [esp + 0x484]
push ecx
push edx
mov ecx, ebp
call fcn.004b3590
jmp 0x4aeabd
mov cl, byte [esp + 0x1f]
xor ebx, ebx
mov byte [esp + 0x38], cl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov esi, dword [esp + 0xcb0]
lea edx, [esp + 0x38]
push edx
push eax
push esi
mov ecx, ebp
mov byte [esp + 0xcb4], 2
call fcn.004b9470
cmp dword [esp + 0x14], ebx
je 0x4aea1a
mov eax, dword [esp + 0x10]
push eax
call edi
mov dword [esp + 0x14], ebx
push esi
mov ecx, ebp
call fcn.004b6480
cmp dword [esp + 0x14], ebx
jne 0x4aea3b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov ecx, ebp
call fcn.004b14e0
mov edx, dword [ebp + 0x624]
mov eax, dword [ebp + 0x60c]
push 0x4aa120
push 0xc80
push edx
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebx
je 0x4aea76
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov dword [esp + 0x14], ebx
xor esi, esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ebx
je 0x4aea9d
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4aea9d
mov eax, dword [eax + esi*4]
mov ecx, ebp
push eax
call fcn.004b6480
inc esi
jmp 0x4aea78
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xcb0], 1
call fcn.0047c270
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00495c27
add esp, 4
cmp dword [ebp + 0x14], 2
jne 0x4aeaca
mov ecx, ebp
call fcn.004ab460
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xcb0], 0
call fcn.0047c270
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00495c27
mov ecx, dword [esp + 0x18]
xor eax, eax
add esp, 4
cmp ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
je 0x4aedb6
jmp 0x4aedab
mov eax, dword [esp + 0xcb8]
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x4aeb31
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
jmp 0x4aeb44
inc eax
push 1
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
lea edx, [esi + 1]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov ecx, ebp
call fcn.004ae020
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x892]
mov word [esp + 0x890], dx
mov word [esp + 0xa98], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa9a]
lea edx, [esp + 0x890]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xcb0]
push ecx
push 0x104
push edx
mov ecx, ebp
stosw word es:[edi], ax
call fcn.004b3700
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xa98]
mov eax, dword [edi + 8]
push eax
push 0x104
push ecx
mov ecx, ebp
call fcn.004b3700
mov edx, dword [ebx + 8]
mov eax, dword [edi + 8]
mov dword [esp + 0x34], edx
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [ebp + 0x624]
mov ecx, dword [ebp + 0x60c]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea eax, [eax + eax*4]
lea edx, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [edx + edx*4]
shl eax, 7
shl edx, 7
sub edx, eax
add eax, ecx
push edx
mov edx, dword [esp + 0x4c]
add edx, ecx
push eax
push edx
call edi
mov ecx, dword [ebp + 0x624]
mov eax, dword [esp + 0x24]
add esp, 0xc
dec ecx
cmp eax, esi
mov dword [ebp + 0x624], ecx
jge 0x4aec16
dec esi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ecx, dword [esp + 0x50]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x20], edx
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0xcb8]
mov ecx, dword [esp + 0x5c]
cmp eax, 1
lea eax, [esi + esi*4 + 5]
mov dword [ebx + 0x28], ecx
lea eax, [eax + eax*4]
jne 0x4aec8a
mov edx, dword [ebp + 0x624]
lea ecx, [esi + esi*4]
shl eax, 7
lea edx, [edx + edx*4]
lea esi, [ecx + ecx*4]
mov ecx, dword [ebp + 0x60c]
lea edx, [edx + edx*4]
shl edx, 7
shl esi, 7
sub edx, eax
push edx
lea edx, [ecx + esi]
add ecx, eax
push edx
push ecx
call edi
mov edi, dword [ebp + 0x60c]
add esp, 0xc
add edi, esi
jmp 0x4aecdc
mov ecx, dword [ebp + 0x624]
shl eax, 7
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x48], eax
lea ecx, [ecx + ecx*4]
shl ecx, 7
mov edx, ecx
lea ecx, [esi + esi*4]
lea esi, [esi + esi*4 + 0xa]
lea ecx, [ecx + ecx*4]
shl ecx, 7
sub edx, ecx
mov ecx, dword [ebp + 0x60c]
sub edx, 0x1900
push edx
lea edx, [ecx + eax]
lea eax, [esi + esi*4]
push edx
shl eax, 7
add eax, ecx
push eax
call edi
mov edi, dword [ebp + 0x60c]
mov ecx, dword [esp + 0x54]
add esp, 0xc
add edi, ecx
mov ecx, 0x320
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x624]
mov ecx, dword [ebp + 0x60c]
inc eax
push 0x4aa120
push 0xc80
push eax
push ecx
mov dword [ebp + 0x624], eax
mov dword [ebp + 0x600], 1
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, ebp
call fcn.004b14e0
lea ecx, [esp + 0x10]
call fcn.004aede0
mov edx, dword [ebx + 8]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
push edx
push esi
push eax
mov ecx, ebp
call fcn.004af400
cmp dword [ebp + 0x14], 2
jne 0x4aed72
push 1
push esi
mov ecx, ebp
call fcn.004b44a0
mov ecx, dword [ebx + 8]
push 1
push ecx
mov ecx, ebp
call fcn.004b44a0
lea edx, [esp + 0x890]
push 4
lea eax, [esp + 0xa9c]
push edx
push eax
mov ecx, ebp
call fcn.004b3590
jmp 0x4aed89
mov ecx, ebp
call fcn.004ab460
lea ecx, [esp + 0x24]
push esi
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004acc90
push ebx
call fcn.00495c27
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 0
call fcn.0047c240
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aedb6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0xca0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc9c
ret 0xc