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

Disassembly:
push 0xffffffffffffffff
push 0x4fb8f1
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 + 0x6274c]
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 0x4d2f56
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 + 0x608]
mov edi, dword [esp + 0xcb0]
or eax, 0xffffffff
cmp ecx, esi
je 0x4d2fa5
cmp edi, esi
jle 0x4d2f6f
cmp edi, 0xc350
jge 0x4d2f6f
mov edx, dword [ebp + edi*4 + 0xc4c]
cmp edx, esi
je 0x4d2fa5
jmp 0x4d2f82
cmp dword [esp + 0x14], esi
je 0x4d2f67
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4d3918
cmp edi, 0x4190ab00
jl 0x4d2fa5
mov edx, dword [ebp + edi*4 - 0x63f9274]
cmp edx, esi
je 0x4d2fa5
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4d2fa5
cmp eax, dword [ebp + 0x620]
jge 0x4d2fa2
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
shl edx, 7
add edx, ecx
je 0x4d2fa2
cmp dword [edx], edi
je 0x4d2fa5
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 + 0x620]
mov edi, edx
mov byte [esp + 0xca8], 1
cmp edi, eax
mov dword [esp + 0x4c], edx
jge 0x4d30bd
mov edx, dword [ebp + 0x608]
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 0x4d30bd
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x4d30bd
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.004cdd40
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x620]
inc edi
add ecx, 0xc80
cmp edi, eax
mov dword [esp + 0x20], ecx
jge 0x4d30bd
mov eax, dword [ebp + 0x608]
mov esi, ecx
add esi, eax
jne 0x4d3027
mov edx, dword [ebp + 0x608]
or esi, 0xffffffff
test edx, edx
je 0x4d311d
mov ecx, dword [esp + 0xcb4]
test ecx, ecx
jle 0x4d30ea
cmp ecx, 0xc350
jge 0x4d30ea
mov eax, dword [ebp + ecx*4 + 0xc4c]
test eax, eax
je 0x4d3120
jmp 0x4d30fd
cmp ecx, 0x4190ab00
jl 0x4d3120
mov eax, dword [ebp + ecx*4 - 0x63f9274]
test eax, eax
je 0x4d3120
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4d3120
cmp esi, dword [ebp + 0x620]
jge 0x4d311d
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
je 0x4d311d
cmp dword [eax], ecx
je 0x4d3120
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.004d20a0
cmp eax, 0xffffffff
jle 0x4d366e
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 2
cmp ecx, esi
je 0x4d3191
push ebx
call fcn.004ba355
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4d317d
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.004db600
jmp 0x4d361a
cmp dword [ebp + 0x14], esi
jne 0x4d3533
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 0x4d3372
cmp eax, ebx
je 0x4d3372
cmp eax, esi
jne 0x4d3227
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x480]
push edx
push 0x50f4e4
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x490]
push ebx
push ecx
call fcn.004f1940
add esp, 0x18
jmp 0x4d3372
push eax
mov ecx, ebp
call fcn.004d6380
cmp eax, 0xffffffff
je 0x4d3372
mov edx, dword [ebp + 0x608]
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 0x4d325a
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 0x4d32fb
push esi
mov ecx, ebp
call fcn.004d6380
cmp eax, 0xffffffff
je 0x4d3372
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 + 0x608]
shl ebx, 7
add ebx, eax
xor eax, eax
push edx
push 0x50f4e4
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 0x4d327b
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.004dc910
lea ecx, [esp + 0x280]
push 0
push ecx
call fcn.004f1940
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea edx, [esp + 0x70]
lea eax, [esp + 0x278]
push edx
push eax
je 0x4d3357
push 0x50f5ec
jmp 0x4d335c
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 0x4d3515
cmp dword [ebp + 0x14], 2
jne 0x4d3515
mov eax, dword [esp + 0xcb0]
test eax, eax
je 0x4d3515
cmp eax, 2
jne 0x4d33d5
lea eax, [ebp + 0x3d0]
lea ecx, [esp + 0x688]
push eax
push 0x50f4e4
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0x698]
push 0
push edx
call fcn.004f1940
add esp, 0x18
jmp 0x4d3515
push eax
mov ecx, ebp
call fcn.004d6380
cmp eax, 0xffffffff
je 0x4d3515
mov edx, dword [ebp + 0x608]
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 0x4d340d
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 0x4d34aa
push esi
mov ecx, ebp
call fcn.004d6380
cmp eax, 0xffffffff
je 0x4d3515
mov edx, dword [ebp + 0x608]
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 0x50f4e4
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 0x4d3430
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.004dc910
lea edx, [esp + 0x78]
push 0
push edx
call fcn.004f1940
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
lea eax, [esp + 0x278]
lea ecx, [esp + 0x70]
push eax
push ecx
je 0x4d34fa
push 0x50f5ec
jmp 0x4d34ff
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.004d8280
jmp 0x4d361a
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.004de180
cmp dword [esp + 0x14], ebx
je 0x4d3577
mov edx, dword [esp + 0x10]
push edx
call edi
mov dword [esp + 0x14], ebx
push esi
mov ecx, ebp
call fcn.004db600
cmp dword [esp + 0x14], ebx
jne 0x4d3598
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov ecx, ebp
call fcn.004d60c0
mov ecx, dword [ebp + 0x620]
mov edx, dword [ebp + 0x608]
push 0x4ce9f0
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 0x4d35d3
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 0x4d35fa
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4d35fa
mov eax, dword [eax + esi*4]
mov ecx, ebp
push eax
call fcn.004db600
inc esi
jmp 0x4d35d5
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xcb0], 1
call fcn.00480b50
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004ba355
add esp, 4
cmp dword [ebp + 0x14], 2
jne 0x4d3627
mov ecx, ebp
call fcn.004cff10
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.00480b50
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004ba355
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 0x4d3913
jmp 0x4d3908
mov eax, dword [esp + 0xcb8]
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x4d368e
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
jmp 0x4d36a1
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.004d2b60
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.004d83f0
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.004d83f0
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 + 0x620]
mov ecx, dword [ebp + 0x608]
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 + 0x620]
mov eax, dword [esp + 0x24]
add esp, 0xc
dec ecx
cmp eax, esi
mov dword [ebp + 0x620], ecx
jge 0x4d3773
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 0x4d37e7
mov edx, dword [ebp + 0x620]
lea ecx, [esi + esi*4]
shl eax, 7
lea edx, [edx + edx*4]
lea esi, [ecx + ecx*4]
mov ecx, dword [ebp + 0x608]
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 + 0x608]
add esp, 0xc
add edi, esi
jmp 0x4d3839
mov ecx, dword [ebp + 0x620]
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 + 0x608]
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 + 0x608]
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 + 0x620]
mov ecx, dword [ebp + 0x608]
inc eax
push 0x4ce9f0
push 0xc80
push eax
push ecx
mov dword [ebp + 0x620], eax
mov dword [ebp + 0x5fc], 1
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov ecx, ebp
call fcn.004d60c0
lea ecx, [esp + 0x10]
call fcn.004d3940
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.004d3f60
cmp dword [ebp + 0x14], 2
jne 0x4d38cf
push 1
push esi
mov ecx, ebp
call fcn.004d9350
mov ecx, dword [ebx + 8]
push 1
push ecx
mov ecx, ebp
call fcn.004d9350
lea edx, [esp + 0x890]
push 4
lea eax, [esp + 0xa9c]
push edx
push eax
mov ecx, ebp
call fcn.004d8280
jmp 0x4d38e6
mov ecx, ebp
call fcn.004cff10
lea ecx, [esp + 0x24]
push esi
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004d1760
push ebx
call fcn.004ba355
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 0
call fcn.00451530
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d3913
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