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

Disassembly:
push 0xffffffffffffffff
push 0x4e39a1
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 0x4c4d06
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 0x4c4d55
cmp edi, esi
jle 0x4c4d1f
cmp edi, 0xc350
jge 0x4c4d1f
mov edx, dword [ebp + edi*4 + 0xc50]
cmp edx, esi
je 0x4c4d55
jmp 0x4c4d32
cmp dword [esp + 0x14], esi
je 0x4c4d17
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4c56c8
cmp edi, 0x4190ab00
jl 0x4c4d55
mov edx, dword [ebp + edi*4 - 0x63f9270]
cmp edx, esi
je 0x4c4d55
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4c4d55
cmp eax, dword [ebp + 0x624]
jge 0x4c4d52
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
shl edx, 7
add edx, ecx
je 0x4c4d52
cmp dword [edx], edi
je 0x4c4d55
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 0x4c4e6d
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 0x4c4e6d
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x4c4e6d
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.004bfd30
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x624]
inc edi
add ecx, 0xc80
cmp edi, eax
mov dword [esp + 0x20], ecx
jge 0x4c4e6d
mov eax, dword [ebp + 0x60c]
mov esi, ecx
add esi, eax
jne 0x4c4dd7
mov edx, dword [ebp + 0x60c]
or esi, 0xffffffff
test edx, edx
je 0x4c4ecd
mov ecx, dword [esp + 0xcb4]
test ecx, ecx
jle 0x4c4e9a
cmp ecx, 0xc350
jge 0x4c4e9a
mov eax, dword [ebp + ecx*4 + 0xc50]
test eax, eax
je 0x4c4ed0
jmp 0x4c4ead
cmp ecx, 0x4190ab00
jl 0x4c4ed0
mov eax, dword [ebp + ecx*4 - 0x63f9270]
test eax, eax
je 0x4c4ed0
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4c4ed0
cmp esi, dword [ebp + 0x624]
jge 0x4c4ecd
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
je 0x4c4ecd
cmp dword [eax], ecx
je 0x4c4ed0
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.004c3e60
cmp eax, 0xffffffff
jle 0x4c541e
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 2
cmp ecx, esi
je 0x4c4f41
push ebx
call fcn.004ace19
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4c4f2d
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.004cd3a0
jmp 0x4c53ca
cmp dword [ebp + 0x14], esi
jne 0x4c52e3
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 0x4c5122
cmp eax, ebx
je 0x4c5122
cmp eax, esi
jne 0x4c4fd7
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x480]
push edx
push 0x4f6574
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x490]
push ebx
push ecx
call fcn.004db580
add esp, 0x18
jmp 0x4c5122
push eax
mov ecx, ebp
call fcn.004c8180
cmp eax, 0xffffffff
je 0x4c5122
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 0x4c500a
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 0x4c50ab
push esi
mov ecx, ebp
call fcn.004c8180
cmp eax, 0xffffffff
je 0x4c5122
lea eax, [eax + eax*4]
mov ecx, 0x81
lea edi, [esp + 0x27a]
lea edx, [esp + 0x70]
lea ebx, [eax + eax*4]
mov eax, dword [ebp + 0x60c]
shl ebx, 7
add ebx, eax
xor eax, eax
push edx
push 0x4f6574
mov esi, dword [ebx + 8]
mov word [esp + 0x280], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea ecx, [esp + 0x278]
add ebx, 0x48
lea edx, [esp + 0x70]
push ecx
push ebx
push str._s_s
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
cmp esi, 2
jne 0x4c502b
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x278]
push 0x104
push eax
call fcn.004ce300
lea ecx, [esp + 0x280]
push 0
push ecx
call fcn.004db580
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea edx, [esp + 0x70]
lea eax, [esp + 0x278]
push edx
push eax
je 0x4c5107
push 0x4f6608
jmp 0x4c510c
push str._s_s.url
lea ecx, [esp + 0x48c]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea edx, [esp + 0x688]
test edx, edx
je 0x4c52c5
cmp dword [ebp + 0x14], 2
jne 0x4c52c5
mov eax, dword [esp + 0xcb0]
test eax, eax
je 0x4c52c5
cmp eax, 2
jne 0x4c5185
lea eax, [ebp + 0x3d0]
lea ecx, [esp + 0x688]
push eax
push 0x4f6574
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x698]
push 0
push edx
call fcn.004db580
add esp, 0x18
jmp 0x4c52c5
push eax
mov ecx, ebp
call fcn.004c8180
cmp eax, 0xffffffff
je 0x4c52c5
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 0x4c51bd
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 0x4c525a
push esi
mov ecx, ebp
call fcn.004c8180
cmp eax, 0xffffffff
je 0x4c52c5
mov edx, 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, edx
mov esi, dword [ebx + 8]
mov word [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x70]
push eax
push 0x4f6574
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea edx, [esp + 0x70]
add ebx, 0x48
lea eax, [esp + 0x278]
push edx
push ebx
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
cmp esi, 2
jne 0x4c51e0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x72]
mov word [esp + 0x70], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x70]
push 0x104
push ecx
stosw word es:[edi], ax
call fcn.004ce300
lea edx, [esp + 0x78]
push 0
push edx
call fcn.004db580
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x70]
push eax
push ecx
je 0x4c52aa
push 0x4f6608
jmp 0x4c52af
push str._s_s.url
lea edx, [esp + 0x694]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [esp + 0x688]
push 4
lea ecx, [esp + 0x484]
push eax
push ecx
mov ecx, ebp
call fcn.004ca060
jmp 0x4c53ca
mov dl, byte [esp + 0x1f]
xor ebx, ebx
mov byte [esp + 0x38], dl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov esi, dword [esp + 0xcb0]
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
mov ecx, ebp
mov byte [esp + 0xcb4], 2
call fcn.004cfcd0
cmp dword [esp + 0x14], ebx
je 0x4c5327
mov edx, dword [esp + 0x10]
push edx
call edi
mov dword [esp + 0x14], ebx
push esi
mov ecx, ebp
call fcn.004cd3a0
cmp dword [esp + 0x14], ebx
jne 0x4c5348
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov ecx, ebp
call fcn.004c7f50
mov ecx, dword [ebp + 0x624]
mov edx, dword [ebp + 0x60c]
push 0x4c09c0
push 0xc80
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_qsort]
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, ebx
je 0x4c5383
mov eax, dword [esp + 0x10]
push eax
call edi
mov dword [esp + 0x14], ebx
xor esi, esi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp eax, ebx
je 0x4c53aa
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4c53aa
mov eax, dword [eax + esi*4]
mov ecx, ebp
push eax
call fcn.004cd3a0
inc esi
jmp 0x4c5385
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xcb0], 1
call fcn.00495620
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004ace19
add esp, 4
cmp dword [ebp + 0x14], 2
jne 0x4c53d7
mov ecx, ebp
call fcn.004c1d20
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.00495620
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004ace19
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 0x4c56c3
jmp 0x4c56b8
mov eax, dword [esp + 0xcb8]
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x4c543e
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
jmp 0x4c5451
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.004c4910
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.004ca1d0
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.004ca1d0
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 0x4c5523
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 0x4c5597
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 0x4c55e9
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 0x4c09c0
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.004c7f50
lea ecx, [esp + 0x10]
call fcn.004c56f0
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.004c5d10
cmp dword [ebp + 0x14], 2
jne 0x4c567f
push 1
push esi
mov ecx, ebp
call fcn.004cb130
mov ecx, dword [ebx + 8]
push 1
push ecx
mov ecx, ebp
call fcn.004cb130
lea edx, [esp + 0x890]
push 4
lea eax, [esp + 0xa9c]
push edx
push eax
mov ecx, ebp
call fcn.004ca060
jmp 0x4c5696
mov ecx, ebp
call fcn.004c1d20
lea ecx, [esp + 0x24]
push esi
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004c3550
push ebx
call fcn.004ace19
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 0
call fcn.00461e80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c56c3
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