Function at 0x4b1bf0
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.004b7d90
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.004fbce0
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.004fbce0
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b1ca8
jb 0x4b1c83
cmp ecx, eax
jae 0x4b1ca8
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push esi
push 0x186a0
push ecx
push edx
call fcn.004fbce0
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4b1cb9
xor eax, eax
jmp 0x4b1cbc
add eax, 1
mov ecx, dword [ebp + 0xa8]
cmp eax, ecx
mov edi, dword [esp + 0xa4]
lea ebx, [ebp + 0xa8]
je 0x4b1ce6
movzx eax, word [edi + 0x16]
and eax, 0x7fff
cmp eax, 2
je 0x4b1ce6
cmp eax, 3
jne 0x4b1d29
lea esi, [ebp + 0x1c8]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4b1d16
call fcn.004b7d90
mov ecx, dword [0x648b4c]
push ecx
mov ecx, dword [0x648b48]
push ecx
push edx
push eax
call fcn.004fbce0
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.0x4b1d4c.1
je 0x4b25eb
cmp eax, 7
ja case.0x4b1d4c.1
jmp dword [eax*4 + 0x4b265c]
cmp dword [edi + 0x2c], 4
jne 0x4b1d9b
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.004aeb00
test eax, eax
jl case.0x4b1d4c.1
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.004aeb50
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.004b7d90
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 0x4b1dd9
jb 0x4b1dcd
cmp ecx, 0x2710
ja 0x4b1dd9
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xb8]
jne 0x4b1e14
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.004b15e0
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 0x4b1e36
mov dword [esp + 0x30], 0
jmp 0x4b1e3d
add eax, 1
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.004aeb00
test eax, eax
jle 0x4b1e66
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.004aeb00
test eax, eax
jl 0x4b1e8f
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.004aeb50
test eax, eax
mov dword [esp + 0x64], eax
jg 0x4b1ed1
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.004b6690
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 0x4b1f3a
mov dword [esp + 0x34], connect
jmp 0x4b1f41
add edi, 0xffffffff
mov dword [esp + 0x34], edi
mov esi, dword [ebp + 0x80]
lea ecx, [esp + 0x34]
push ecx
call fcn.004b9f20
mov edx, dword [ebp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp + 0x18], 0
je 0x4b1f71
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.004b3c40
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.004fbce0
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.004fbce0
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b205c
jb 0x4b2036
cmp ecx, eax
jae 0x4b205c
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004fbce0
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
cmp dword [edi + 0x2c], 0x10
jle 0x4b20b4
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x4b2082
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 0x4b20a2
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.004fbc66
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.004b9390
mov esi, eax
test esi, esi
jle case.0x4b1d4c.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.004fbce0
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.004fbce0
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4b2222
jb 0x4b21fc
cmp ecx, eax
jae 0x4b2222
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004fbce0
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
lea esi, [ebp + 0xe8]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.004aeb00
test eax, eax
jle case.0x4b1d4c.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.004fbc66
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 0x4b23f7
mov dword [esp + 0x24], esi
lea edi, [esi + 4]
mov eax, dword [esi]
test eax, eax
jns 0x4b2392
mov ebx, eax
and ebx, 0x7fffffff
mov ecx, edi
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ebx
call fcn.004aeb00
test eax, eax
jg 0x4b1e4e
lea ecx, [ebp + 0xb0]
mov eax, edi
call fcn.004aeb00
test eax, eax
jg 0x4b1e4e
lea ecx, [ebp + 0xa8]
lea eax, [esp + 0x40]
xor esi, esi
mov dword [esp + 0x40], ebx
call fcn.004aeb00
test eax, eax
jl 0x4b2354
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
jmp 0x4b2368
lea ebx, [ebp + 0xa8]
mov ecx, ebx
mov eax, edi
call fcn.004aeb00
test eax, eax
jl 0x4b2377
push ebx
mov esi, dword [ebp + 0x80]
mov eax, edi
call fcn.004b9a70
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 0x4b23d2
lea ecx, [ebp + 0xa8]
mov eax, esi
call fcn.004aeb00
test eax, eax
jl 0x4b23da
lea ecx, [ebp + 0xb0]
mov eax, esi
call fcn.004aeb00
test eax, eax
jg 0x4b1e4e
push esi
mov eax, esi
mov esi, dword [ebp + 0x80]
call fcn.004b9a70
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 0x4b22f2
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.004b3c40
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 [0x610ea0]
fstp qword [esp]
call fcn.004fb970
add esp, 8
call fcn.004fbc66
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 0x4b24c1
cmp byte [ebp + 0x38], 0
je case.0x4b1d4c.1
cmp eax, 0xfffffffe
je case.0x4b1d4c.1
lea eax, [esp + 0x68]
call fcn.004b98c0
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.004b15e0
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.004b1580
mov edx, dword [0x648b40]
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.004b6a60
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xd0]
lea ebx, [eax + 4]
call fcn.004ba8f0
mov eax, dword [ebp + 0xf0]
add ebp, 0xf0
cmp eax, 0x7fffffff
jne 0x4b25aa
mov dword [esp + 0x38], 0
jmp 0x4b25b1
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.004aeb00
test eax, eax
jg case.0x4b1d4c.1
add esi, 4
mov ecx, ebp
mov eax, esi
call fcn.004aeb00
test eax, eax
jle case.0x4b1d4c.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.004fbc66
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