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

Disassembly:
push 0xffffffffffffffff
push 0x4d1f91
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 0x4b3866
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 0x4b38b5
cmp edi, esi
jle 0x4b387f
cmp edi, 0xc350
jge 0x4b387f
mov edx, dword [ebp + edi*4 + 0xc50]
cmp edx, esi
je 0x4b38b5
jmp 0x4b3892
cmp dword [esp + 0x14], esi
je 0x4b3877
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4b420b
cmp edi, 0x4190ab00
jl 0x4b38b5
mov edx, dword [ebp + edi*4 - 0x63f9270]
cmp edx, esi
je 0x4b38b5
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x4b38b5
cmp eax, dword [ebp + 0x624]
jge 0x4b38b2
lea edx, [eax + eax*4]
lea edx, [edx + edx*4]
shl edx, 7
add edx, ecx
je 0x4b38b2
cmp dword [edx], edi
je 0x4b38b5
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 0x4b39cd
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 0x4b39cd
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esi + 8]
cmp eax, ecx
jne 0x4b39cd
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.004ae920
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x624]
inc edi
add ecx, 0xc80
cmp edi, eax
mov dword [esp + 0x20], ecx
jge 0x4b39cd
mov eax, dword [ebp + 0x60c]
mov esi, ecx
add esi, eax
jne 0x4b3937
mov edx, dword [ebp + 0x60c]
or esi, 0xffffffff
test edx, edx
je 0x4b3a2d
mov ecx, dword [esp + 0xcb4]
test ecx, ecx
jle 0x4b39fa
cmp ecx, 0xc350
jge 0x4b39fa
mov eax, dword [ebp + ecx*4 + 0xc50]
test eax, eax
je 0x4b3a30
jmp 0x4b3a0d
cmp ecx, 0x4190ab00
jl 0x4b3a30
mov eax, dword [ebp + ecx*4 - 0x63f9270]
test eax, eax
je 0x4b3a30
mov esi, dword [eax]
cmp esi, 0xffffffff
je 0x4b3a30
cmp esi, dword [ebp + 0x624]
jge 0x4b3a2d
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 7
add eax, edx
je 0x4b3a2d
cmp dword [eax], ecx
je 0x4b3a30
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.004b29e0
cmp eax, 0xffffffff
jle 0x4b3f61
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, 2
cmp ecx, esi
je 0x4b3aa1
push ebx
call fcn.0049bb1b
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x4b3a8d
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.004bb8d0
jmp 0x4b3f0d
cmp dword [ebp + 0x14], esi
jne 0x4b3e26
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 0x4b3c74
cmp eax, ebx
je 0x4b3c74
cmp eax, esi
jne 0x4b3b29
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x480]
push edx
push 0x4e33c0
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4b3c74
push eax
mov ecx, ebp
call fcn.004b6b60
cmp eax, 0xffffffff
je 0x4b3c74
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 0x4b3b5c
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 0x4b3bfd
push esi
mov ecx, ebp
call fcn.004b6b60
cmp eax, 0xffffffff
je 0x4b3c74
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 0x4e33c0
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 0x4b3b7d
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.004bc7e0
lea eax, [esp + 0x280]
push 0
push eax
call fcn.004ca180
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x70]
lea edx, [esp + 0x278]
test eax, eax
push ecx
push edx
je 0x4b3c59
push 0x4e37b8
jmp 0x4b3c5e
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 0x4b3e08
cmp dword [ebp + 0x14], 2
jne 0x4b3e08
mov eax, dword [esp + 0xcb0]
test eax, eax
je 0x4b3e08
cmp eax, 2
jne 0x4b3cc8
lea edx, [ebp + 0x3d0]
lea eax, [esp + 0x688]
push edx
push 0x4e33c0
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x4b3e08
push eax
mov ecx, ebp
call fcn.004b6b60
cmp eax, 0xffffffff
je 0x4b3e08
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 0x4b3d00
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 0x4b3d9d
push esi
mov ecx, ebp
call fcn.004b6b60
cmp eax, 0xffffffff
je 0x4b3e08
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 0x4e33c0
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 0x4b3d23
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.004bc7e0
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004ca180
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x278]
lea edx, [esp + 0x70]
test eax, eax
push ecx
push edx
je 0x4b3ded
push 0x4e37b8
jmp 0x4b3df2
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.004b89e0
jmp 0x4b3f0d
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.004be1a0
cmp dword [esp + 0x14], ebx
je 0x4b3e6a
mov eax, dword [esp + 0x10]
push eax
call edi
mov dword [esp + 0x14], ebx
push esi
mov ecx, ebp
call fcn.004bb8d0
cmp dword [esp + 0x14], ebx
jne 0x4b3e8b
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x14], 1
mov ecx, ebp
call fcn.004b6930
mov edx, dword [ebp + 0x624]
mov eax, dword [ebp + 0x60c]
push 0x4af570
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 0x4b3ec6
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 0x4b3eed
mov edx, ecx
sub edx, eax
sar edx, 2
cmp esi, edx
jae 0x4b3eed
mov eax, dword [eax + esi*4]
mov ecx, ebp
push eax
call fcn.004bb8d0
inc esi
jmp 0x4b3ec8
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xcb0], 1
call fcn.004846b0
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0049bb1b
add esp, 4
cmp dword [ebp + 0x14], 2
jne 0x4b3f1a
mov ecx, ebp
call fcn.004b08b0
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.004846b0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0049bb1b
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 0x4b4206
jmp 0x4b41fb
mov eax, dword [esp + 0xcb8]
cmp eax, 1
mov eax, dword [edi + 0xc]
jne 0x4b3f81
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 8]
push 1
push ecx
lea edx, [esp + 0x2c]
push esi
push edx
jmp 0x4b3f94
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.004b3470
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.004b8b50
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.004b8b50
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 0x4b4066
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 0x4b40da
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 0x4b412c
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 0x4af570
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.004b6930
lea ecx, [esp + 0x10]
call fcn.004b4230
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.004b4850
cmp dword [ebp + 0x14], 2
jne 0x4b41c2
push 1
push esi
mov ecx, ebp
call fcn.004b9900
mov ecx, dword [ebx + 8]
push 1
push ecx
mov ecx, ebp
call fcn.004b9900
lea edx, [esp + 0x890]
push 4
lea eax, [esp + 0xa9c]
push edx
push eax
mov ecx, ebp
call fcn.004b89e0
jmp 0x4b41d9
mov ecx, ebp
call fcn.004b08b0
lea ecx, [esp + 0x24]
push esi
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.004b20e0
push ebx
call fcn.0049bb1b
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xca8], 0
call fcn.0045a030
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b4206
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