Function at 0x4a25b0
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.004a87d0
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.004ecf70
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.004ecf70
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4a2668
jb 0x4a2643
cmp ecx, eax
jae 0x4a2668
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push esi
push 0x186a0
push ecx
push edx
call fcn.004ecf70
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
mov eax, dword [ebp + 0xb0]
cmp eax, 0x7fffffff
jne 0x4a2679
xor eax, eax
jmp 0x4a267c
add eax, 1
mov ecx, dword [ebp + 0xa8]
cmp eax, ecx
mov edi, dword [esp + 0xa4]
lea ebx, [ebp + 0xa8]
je 0x4a26a6
movzx eax, word [edi + 0x16]
and eax, 0x7fff
cmp eax, 2
je 0x4a26a6
cmp eax, 3
jne 0x4a26e9
lea esi, [ebp + 0x1c8]
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x4a26d6
call fcn.004a87d0
mov ecx, dword [0x637b1c]
push ecx
mov ecx, dword [0x637b18]
push ecx
push edx
push eax
call fcn.004ecf70
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.0x4a270c.1
je 0x4a2fab
cmp eax, 7
ja case.0x4a270c.1
jmp dword [eax*4 + 0x4a301c]
cmp dword [edi + 0x2c], 4
jne 0x4a275b
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.0049f6b0
test eax, eax
jl case.0x4a270c.1
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.0049f700
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.004a87d0
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 0x4a2799
jb 0x4a278d
cmp ecx, 0x2710
ja 0x4a2799
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xb8]
jne 0x4a27d4
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.004a1fa0
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 0x4a27f6
mov dword [esp + 0x30], 0
jmp 0x4a27fd
add eax, 1
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x14]
call fcn.0049f6b0
test eax, eax
jle 0x4a2826
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.0049f6b0
test eax, eax
jl 0x4a284f
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.0049f700
test eax, eax
mov dword [esp + 0x64], eax
jg 0x4a2891
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.004a71b0
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 0x4a28fa
mov dword [esp + 0x34], closesocket
jmp 0x4a2901
add edi, 0xffffffff
mov dword [esp + 0x34], edi
mov esi, dword [ebp + 0x80]
lea ecx, [esp + 0x34]
push ecx
call fcn.004aa980
mov edx, dword [ebp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp + 0x18], 0
je 0x4a2931
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.004a4600
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.004ecf70
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.004ecf70
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4a2a1c
jb 0x4a29f6
cmp ecx, eax
jae 0x4a2a1c
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004ecf70
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
cmp dword [edi + 0x2c], 0x10
jle 0x4a2a74
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jle 0x4a2a42
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 0x4a2a62
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.004ecef6
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.004a9df0
mov esi, eax
test esi, esi
jle case.0x4a270c.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.004ecf70
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.004ecf70
mov ecx, dword [ebp + 0x1e8]
cmp dword [ebp + 0x1ec], edx
ja 0x4a2be2
jb 0x4a2bbc
cmp ecx, eax
jae 0x4a2be2
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
push 0
push 0x186a0
push ecx
push edx
call fcn.004ecf70
mov dword [ebp + 0x1e8], eax
mov dword [ebp + 0x1ec], edx
lea esi, [ebp + 0xe8]
mov ecx, esi
lea eax, [esp + 0x2c]
call fcn.0049f6b0
test eax, eax
jle case.0x4a270c.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.004ecef6
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 0x4a2db7
mov dword [esp + 0x24], esi
lea edi, [esi + 4]
mov eax, dword [esi]
test eax, eax
jns 0x4a2d52
mov ebx, eax
and ebx, 0x7fffffff
mov ecx, edi
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ebx
call fcn.0049f6b0
test eax, eax
jg 0x4a280e
lea ecx, [ebp + 0xb0]
mov eax, edi
call fcn.0049f6b0
test eax, eax
jg 0x4a280e
lea ecx, [ebp + 0xa8]
lea eax, [esp + 0x40]
xor esi, esi
mov dword [esp + 0x40], ebx
call fcn.0049f6b0
test eax, eax
jl 0x4a2d14
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebx
push eax
jmp 0x4a2d28
lea ebx, [ebp + 0xa8]
mov ecx, ebx
mov eax, edi
call fcn.0049f6b0
test eax, eax
jl 0x4a2d37
push ebx
mov esi, dword [ebp + 0x80]
mov eax, edi
call fcn.004aa4d0
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 0x4a2d92
lea ecx, [ebp + 0xa8]
mov eax, esi
call fcn.0049f6b0
test eax, eax
jl 0x4a2d9a
lea ecx, [ebp + 0xb0]
mov eax, esi
call fcn.0049f6b0
test eax, eax
jg 0x4a280e
push esi
mov eax, esi
mov esi, dword [ebp + 0x80]
call fcn.004aa4d0
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 0x4a2cb2
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.004a4600
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 [0x600530]
fstp qword [esp]
call fcn.004e9260
add esp, 8
call fcn.004ecef6
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 0x4a2e81
cmp byte [ebp + 0x38], 0
je case.0x4a270c.1
cmp eax, 0xfffffffe
je case.0x4a270c.1
lea eax, [esp + 0x68]
call fcn.004aa320
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.004a1fa0
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.004a1f40
mov edx, dword [0x637b10]
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.004a7580
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xd0]
lea ebx, [eax + 4]
call fcn.004ab350
mov eax, dword [ebp + 0xf0]
add ebp, 0xf0
cmp eax, 0x7fffffff
jne 0x4a2f6a
mov dword [esp + 0x38], 0
jmp 0x4a2f71
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.0049f6b0
test eax, eax
jg case.0x4a270c.1
add esi, 4
mov ecx, ebp
mov eax, esi
call fcn.0049f6b0
test eax, eax
jle case.0x4a270c.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.004ecef6
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