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

Disassembly:
push 0xffffffffffffffff
push 0x4e3611
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 0x4c49d6
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 0x4c4a25
cmp edi, esi
jle 0x4c49ef
cmp edi, 0xc350
jge 0x4c49ef
mov edx, dword [ebp + edi*4 + 0xc50]
cmp edx, esi
je 0x4c4a25
jmp 0x4c4a02
cmp dword [esp + 0x14], esi
je 0x4c49e7
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4c5398
cmp edi, 0x4190ab00
jl 0x4c4a25
mov edx, dword [ebp + edi*4 - 0x63f9270]
cmp edx, esi
je 0x4c4a25
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4c4a25
cmp eax, dword [ebp + 0x624]
jge 0x4c4a22
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
shl edx, 7
add edx, ecx
je 0x4c4a22
cmp dword [edx], edi
je 0x4c4a25
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 0x4c4b3d
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 0x4c4b3d
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x4c4b3d
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.004bfa00
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x624]
inc edi
add ecx, 0xc80
cmp edi, eax
mov dword [esp + 0x20], ecx
jge 0x4c4b3d
mov eax, dword [ebp + 0x60c]
mov esi, ecx
add esi, eax
jne 0x4c4aa7
mov edx, dword [ebp + 0x60c]
or esi, 0xffffffff
test edx, edx
je 0x4c4b9d
mov ecx, dword [esp + 0xcb4]
test ecx, ecx
jle 0x4c4b6a
cmp ecx, 0xc350
jge 0x4c4b6a
mov eax, dword [ebp + ecx*4 + 0xc50]
test eax, eax
je 0x4c4ba0
jmp 0x4c4b7d
cmp ecx, 0x4190ab00
jl 0x4c4ba0
mov eax, dword [ebp + ecx*4 - 0x63f9270]
test eax, eax
je 0x4c4ba0
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4c4ba0
cmp esi, dword [ebp + 0x624]
jge 0x4c4b9d
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
je 0x4c4b9d
cmp dword [eax], ecx
je 0x4c4ba0
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.004c3b30
cmp eax, 0xffffffff
jle 0x4c50ee
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 2
cmp ecx, esi
je 0x4c4c11
push ebx
call fcn.004acab9
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4c4bfd
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.004cd0b0
jmp 0x4c509a
cmp dword [ebp + 0x14], esi
jne 0x4c4fb3
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 0x4c4df2
cmp eax, ebx
je 0x4c4df2
cmp eax, esi
jne 0x4c4ca7
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x480]
push edx
push 0x4f6580
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x490]
push ebx
push ecx
call fcn.004db1d0
add esp, 0x18
jmp 0x4c4df2
push eax
mov ecx, ebp
call fcn.004c7e50
cmp eax, 0xffffffff
je 0x4c4df2
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 0x4c4cda
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 0x4c4d7b
push esi
mov ecx, ebp
call fcn.004c7e50
cmp eax, 0xffffffff
je 0x4c4df2
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 0x4f6580
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 0x4c4cfb
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.004ce010
lea ecx, [esp + 0x280]
push 0
push ecx
call fcn.004db1d0
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea edx, [esp + 0x70]
lea eax, [esp + 0x278]
push edx
push eax
je 0x4c4dd7
push 0x4f6614
jmp 0x4c4ddc
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 0x4c4f95
cmp dword [ebp + 0x14], 2
jne 0x4c4f95
mov eax, dword [esp + 0xcb0]
test eax, eax
je 0x4c4f95
cmp eax, 2
jne 0x4c4e55
lea eax, [ebp + 0x3d0]
lea ecx, [esp + 0x688]
push eax
push 0x4f6580
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x698]
push 0
push edx
call fcn.004db1d0
add esp, 0x18
jmp 0x4c4f95
push eax
mov ecx, ebp
call fcn.004c7e50
cmp eax, 0xffffffff
je 0x4c4f95
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 0x4c4e8d
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 0x4c4f2a
push esi
mov ecx, ebp
call fcn.004c7e50
cmp eax, 0xffffffff
je 0x4c4f95
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 0x4f6580
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 0x4c4eb0
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.004ce010
lea edx, [esp + 0x78]
push 0
push edx
call fcn.004db1d0
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x70]
push eax
push ecx
je 0x4c4f7a
push 0x4f6614
jmp 0x4c4f7f
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.004c9d30
jmp 0x4c509a
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.004cf9e0
cmp dword [esp + 0x14], ebx
je 0x4c4ff7
mov edx, dword [esp + 0x10]
push edx
call edi
mov dword [esp + 0x14], ebx
push esi
mov ecx, ebp
call fcn.004cd0b0
cmp dword [esp + 0x14], ebx
jne 0x4c5018
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov ecx, ebp
call fcn.004c7c20
mov ecx, dword [ebp + 0x624]
mov edx, dword [ebp + 0x60c]
push 0x4c0690
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 0x4c5053
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 0x4c507a
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4c507a
mov eax, dword [eax + esi*4]
mov ecx, ebp
push eax
call fcn.004cd0b0
inc esi
jmp 0x4c5055
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xcb0], 1
call fcn.004bf9f0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004acab9
add esp, 4
cmp dword [ebp + 0x14], 2
jne 0x4c50a7
mov ecx, ebp
call fcn.004c19f0
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.004bf9f0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004acab9
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 0x4c5393
jmp 0x4c5388
mov eax, dword [esp + 0xcb8]
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x4c510e
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
jmp 0x4c5121
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.004c45e0
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.004c9ea0
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.004c9ea0
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 0x4c51f3
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 0x4c5267
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 0x4c52b9
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 0x4c0690
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.004c7c20
lea ecx, [esp + 0x10]
call fcn.004c53c0
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.004c59e0
cmp dword [ebp + 0x14], 2
jne 0x4c534f
push 1
push esi
mov ecx, ebp
call fcn.004cae40
mov ecx, dword [ebx + 8]
push 1
push ecx
mov ecx, ebp
call fcn.004cae40
lea edx, [esp + 0x890]
push 4
lea eax, [esp + 0xa9c]
push edx
push eax
mov ecx, ebp
call fcn.004c9d30
jmp 0x4c5366
mov ecx, ebp
call fcn.004c19f0
lea ecx, [esp + 0x24]
push esi
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004c3220
push ebx
call fcn.004acab9
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 0
call fcn.00463eb0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c5393
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