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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
mov dword [ebp + 0x68], 1
call fcn.004b72a0
mov ecx, dword [ebp + 0x70]
mov dword [ebp + 0x1f0], eax
mov eax, dword [ebp + 0x74]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x1b4]
push ecx
mov ecx, dword [ebp + 0x1b0]
mov dword [ebp + 0x1f4], edx
cdq
push ecx
push edx
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1d0]
mov esi, dword [ebp + 0x1d4]
add ecx, eax
mov eax, dword [ebp + 0x1b0]
adc esi, edx
mov edx, dword [ebp + 0x1b4]
mov dword [ebp + 0x1e8], ecx
mov dword [ebp + 0x1ec], esi
xor esi, esi
push esi
push 0x186a0
push edx
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b15b8
jb 0x4b1593
cmp ecx, eax
jae 0x4b15b8
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push esi
push 0x186a0
push ecx
push edx
call fcn.004fba20
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4b15c9
xor eax, eax
jmp 0x4b15cc
add eax, 1
mov ecx, dword [ebp + 0xa8]
cmp eax, ecx
mov edi, dword [esp + 0xa4]
lea ebx, [ebp + 0xa8]
je 0x4b15f6
movzx eax, word [edi + 0x16]
and eax, 0x7fff
cmp eax, 2
je 0x4b15f6
cmp eax, 3
jne 0x4b1639
lea esi, [ebp + 0x1c8]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b1626
call fcn.004b72a0
mov ecx, dword [0x649b34]
push ecx
mov ecx, dword [0x649b30]
push ecx
push edx
push eax
call fcn.004fba20
mov dword [esi], eax
mov dword [esi + 4], edx
mov edx, dword [ebp + 0x1e8]
mov eax, dword [ebp + 0x1ec]
add dword [esi], edx
adc dword [esi + 4], eax
xor esi, esi
movzx eax, word [edi + 0x16]
and eax, 0x7fff
cmp eax, 0x7fff
jg case.0x4b165c.1
je 0x4b1efb
cmp eax, 7
ja case.0x4b165c.1
jmp dword [eax*4 + 0x4b1f6c]
cmp dword [edi + 0x2c], 4
jne 0x4b16ab
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
mov ecx, ebx
lea eax, [esp + 0x14]
call fcn.004ae410
test eax, eax
jl case.0x4b165c.1
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004ae460
sub dword [ebp + 0x98], eax
mov ecx, dword [esp + 0x14]
mov dword [ebx], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov edx, dword [edi + 0x18]
mov dword [esp + 0x14], edx
call fcn.004b72a0
mov ebx, eax
mov esi, edx
mov ecx, ebx
sub ecx, dword [ebp + 0xc0]
mov eax, esi
sbb eax, dword [ebp + 0xc4]
mov dword [esp + 0x1c], esi
test eax, eax
ja 0x4b16e9
jb 0x4b16dd
cmp ecx, 0x2710
ja 0x4b16e9
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xb8]
jne 0x4b1724
lea ecx, [esp + 0x3c]
push ecx
push ebp
lea edx, [esp + 0x4c]
xor ecx, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 6
call fcn.004b0ef0
mov edx, dword [esp + 0x14]
mov dword [ebp + 0xb8], edx
mov dword [ebp + 0xc0], ebx
mov dword [ebp + 0xc4], esi
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
jne 0x4b1746
mov dword [esp + 0x30], 0
jmp 0x4b174d
add eax, 1
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.004ae410
test eax, eax
jle 0x4b1776
mov byte [ebp + 0x60], 1
mov dword [ebp + 0x64], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
lea esi, [ebp + 0xa8]
mov ecx, esi
lea eax, [esp + 0x14]
call fcn.004ae410
test eax, eax
jl 0x4b179f
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x98], edx
mov dword [esi], eax
mov ecx, dword [ebp + 0x110]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [ebp + 0xac]
lea edx, [esp + 0x14]
mov eax, edi
call fcn.004ae460
test eax, eax
mov dword [esp + 0x64], eax
jg 0x4b17e1
mov edx, dword [ebp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov esi, dword [ebp + 0x7c]
lea eax, [esp + 0x64]
push eax
call fcn.004b5c30
mov eax, dword [ebp + 0x1a8]
mov ecx, dword [ebp + 0x1ac]
mov esi, dword [esp + 0x1c]
mov edx, ebx
sub edx, eax
sbb esi, ecx
add dword [ebp + 0x1a0], edx
mov edx, ebx
mov dword [ebp + 0x1a8], ebx
adc dword [ebp + 0x1a4], esi
sub edx, eax
mov eax, dword [esp + 0x1c]
mov esi, eax
sbb esi, ecx
add dword [ebp + 0x160], edx
mov dword [ebp + 0x1ac], eax
mov eax, dword [esp + 0x14]
adc dword [ebp + 0x164], esi
mov dword [edi], eax
mov edi, dword [edi]
test edi, edi
jne 0x4b184a
mov dword [esp + 0x34], getsockname
jmp 0x4b1851
add edi, 0xffffffff
mov dword [esp + 0x34], edi
mov esi, dword [ebp + 0x80]
lea ecx, [esp + 0x34]
push ecx
call fcn.004b9430
mov edx, dword [ebp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp + 0x18], 0
je 0x4b1881
mov eax, dword [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp + 0x208]
mov edi, dword [edx + 4]
lea ecx, [esp + 0x22]
push ecx
mov eax, ebp
mov byte [esp + 0x26], 0
call fcn.004b3550
mov edi, dword [esp + 0xa4]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
mov ecx, dword [ebp + 0x70]
mov eax, esi
sub eax, ecx
cdq
mov ebx, eax
mov eax, dword [ebp + 0x74]
xor ebx, edx
sub ebx, edx
lea edx, [eax + eax*2]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 0x54]
add eax, esi
add ebx, edx
sar eax, 3
mov dword [ebp + 0x70], eax
sar ebx, 2
mov dword [ebp + 0x74], ebx
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp + 0x70]
push ecx
mov ecx, dword [ebp + 0x1b0]
lea eax, [eax + edx*4]
cdq
push ecx
push edx
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1d0]
mov esi, dword [ebp + 0x1d4]
add ecx, eax
mov eax, dword [ebp + 0x1b0]
push 0
adc esi, edx
mov edx, dword [ebp + 0x1b4]
push 0x186a0
push edx
mov dword [ebp + 0x1e8], ecx
mov dword [ebp + 0x1ec], esi
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b196c
jb 0x4b1946
cmp ecx, eax
jae 0x4b196c
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004fba20
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
cmp dword [edi + 0x2c], 0x10
jle 0x4b19c4
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x4b1992
mov eax, dword [ebp + 0x78]
lea edx, [eax*8]
sub edx, eax
add edx, ecx
sar edx, 3
mov dword [ebp + 0x78], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jle 0x4b19b2
mov eax, dword [ebp + 0x6c]
lea edx, [eax*8]
sub edx, eax
add edx, ecx
sar edx, 3
mov dword [ebp + 0x6c], edx
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x78]
mov dword [eax + 0x38], ecx
mov edx, dword [ebp + 0x54]
mov eax, dword [ebp + 0x6c]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x14]
push eax
call edx
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
fild qword [esp + 0x18]
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004fb9a6
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
mov eax, 1
add dword [ebp + 0x190], eax
add dword [ebp + 0x150], eax
fstp qword [ebp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 0xd4]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
mov dword [esp + 0x50], eax
call fcn.004b88a0
mov esi, eax
test esi, esi
jle case.0x4b165c.1
mov ecx, dword [ebp + 0x70]
sub eax, ecx
cdq
mov edi, eax
mov eax, dword [ebp + 0x74]
xor edi, edx
sub edi, edx
lea edx, [eax + eax*2]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp + 0x54]
add eax, esi
add edi, edx
sar eax, 3
mov dword [ebp + 0x70], eax
sar edi, 2
mov dword [ebp + 0x74], edi
mov dword [ecx + 0x3c], eax
mov edx, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x1b4]
mov eax, dword [ebp + 0x70]
push ecx
mov ecx, dword [ebp + 0x1b0]
lea eax, [eax + edx*4]
cdq
push ecx
push edx
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1d0]
mov esi, dword [ebp + 0x1d4]
add ecx, eax
mov eax, dword [ebp + 0x1b0]
push 0
adc esi, edx
mov edx, dword [ebp + 0x1b4]
push 0x186a0
push edx
mov dword [ebp + 0x1e8], ecx
mov dword [ebp + 0x1ec], esi
push eax
call fcn.004fba20
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b1b32
jb 0x4b1b0c
cmp ecx, eax
jae 0x4b1b32
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004fba20
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
lea esi, [ebp + 0xe8]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.004ae410
test eax, eax
jle case.0x4b165c.1
mov eax, dword [esp + 0x2c]
mov dword [esi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx]
mov ecx, dword [ebp + 0x54]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x5c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x5c]
push eax
push esi
call edx
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
fild qword [esp + 0x18]
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004fb9a6
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
mov dword [esp + 0x28], ebx
fstp qword [ebp + 0xa0]
mov eax, dword [edi + 0x2c]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
test ebx, ebx
mov dword [esp + 0x18], ebx
jle 0x4b1d07
mov dword [esp + 0x24], esi
lea edi, [esi + 4]
mov eax, dword [esi]
test eax, eax
jns 0x4b1ca2
mov ebx, eax
and ebx, 0x7fffffff
mov ecx, edi
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ebx
call fcn.004ae410
test eax, eax
jg 0x4b175e
lea ecx, [ebp + 0xb0]
mov eax, edi
call fcn.004ae410
test eax, eax
jg 0x4b175e
lea ecx, [ebp + 0xa8]
lea eax, [esp + 0x40]
xor esi, esi
mov dword [esp + 0x40], ebx
call fcn.004ae410
test eax, eax
jl 0x4b1c64
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
jmp 0x4b1c78
lea ebx, [ebp + 0xa8]
mov ecx, ebx
mov eax, edi
call fcn.004ae410
test eax, eax
jl 0x4b1c87
push ebx
mov esi, dword [ebp + 0x80]
mov eax, edi
call fcn.004b8f80
mov esi, eax
add dword [ebp + 0x180], esi
add dword [ebp + 0x140], esi
add dword [esp + 0x28], 1
add dword [esp + 0x24], 4
add edi, 4
jmp 0x4b1ce2
lea ecx, [ebp + 0xa8]
mov eax, esi
call fcn.004ae410
test eax, eax
jl 0x4b1cea
lea ecx, [ebp + 0xb0]
mov eax, esi
call fcn.004ae410
test eax, eax
jg 0x4b175e
push esi
mov eax, esi
mov esi, dword [ebp + 0x80]
call fcn.004b8f80
add dword [ebp + 0x180], eax
add dword [ebp + 0x140], eax
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
add eax, 1
add esi, 4
add edi, 4
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
jl 0x4b1c02
mov edx, dword [ebp + 0x208]
mov edi, dword [edx + 4]
lea ecx, [esp + 0x23]
push ecx
mov eax, ebp
mov byte [esp + 0x27], 1
call fcn.004b3550
mov eax, 1
add dword [ebp + 0x198], eax
add dword [ebp + 0x158], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp + 0x8c]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
fild qword [esp + 0x18]
sub esp, 8
fchs
faddp st(1)
fmul qword [0x611680]
fstp qword [esp]
call fcn.004f7f90
add esp, 8
call fcn.004fb9a6
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0xb0]
mov dword [ebp + 0xb4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
cmp eax, esi
jg 0x4b1dd1
cmp byte [ebp + 0x38], 0
je case.0x4b165c.1
cmp eax, 0xfffffffe
je case.0x4b165c.1
lea eax, [esp + 0x68]
call fcn.004b8dd0
mov edx, dword [ebp + 0xc8]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x70], edx
mov dl, byte [ebp + 0x38]
neg dl
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x84], eax
sbb edx, edx
add edx, 0xffffffff
mov dword [esp + 0x80], edx
push ebp
lea edx, [esp + 0x60]
lea ecx, [esp + 0x70]
xor eax, eax
mov dword [esp + 0x60], 0x30
mov dword [esp + 0x58], esi
call fcn.004b0ef0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov byte [ebp + 0x5f], 1
mov byte [ebp + 0x5e], 1
mov esi, ebp
mov byte [ebp + 0x60], 1
mov dword [ebp + 0x64], 0x3c
call fcn.004b0e90
mov edx, dword [0x649b28]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov eax, dword [edi + 0x18]
mov esi, dword [ebp + 0xcc]
and eax, 0x1fffffff
lea ebx, [esp + 0x60]
mov dword [esp + 0x60], eax
call fcn.004b6000
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xd0]
lea ebx, [eax + 4]
call fcn.004b9e00
mov eax, dword [ebp + 0xf0]
add ebp, 0xf0
cmp eax, 0x7fffffff
jne 0x4b1eba
mov dword [esp + 0x38], 0
jmp 0x4b1ec1
add eax, 1
mov dword [esp + 0x38], eax
mov edx, dword [edi + 0x10]
mov esi, dword [edx]
lea ecx, [esp + 0x38]
mov eax, esi
call fcn.004ae410
test eax, eax
jg case.0x4b165c.1
add esi, 4
mov ecx, ebp
mov eax, esi
call fcn.004ae410
test eax, eax
jle case.0x4b165c.1
mov eax, dword [esi]
mov dword [ebp], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8
mov ecx, dword [ebp + 0x54]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
push edi
call eax
mov ecx, dword [ebp + 0x1b0]
mov eax, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x54]
mov dword [esp + 0x18], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x1c], eax
fild qword [esp + 0x18]
and ecx, 0x80000000
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
fild qword [esp + 0x18]
fchs
faddp st(1)
fmul qword [edx + 0x10]
call fcn.004fb9a6
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], edx
mov edx, dword [ebp + 0x54]
fld qword [edx + 0x18]
fstp qword [ebp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 8