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

Disassembly:
push 0xffffffffffffffff
push 0x58e560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [0x639ad4]
push ebx
push ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov ebp, dword [esp + 0x68]
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
push ebp
mov dword [esp + 0x68], ebx
call fcn.005160f0
mov edx, dword [esp + 0x10]
push str.75B22630_668E_11CF_A6D9_00AA0062CE6C
push edx
call fcn.00556b60
add esp, 0x10
test eax, eax
je 0x5161eb
lea ecx, [esp + 8]
mov dword [esp + 0x60], 0xffffffff
call fcn.0056a100
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
push esi
lea eax, [ebp + 0x18]
push edi
push eax
call fcn.005151e0
mov edi, 0x1e
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x10]
lea eax, [edi + ebp]
push ecx
push eax
mov dword [esp + 0x38], eax
call fcn.005160f0
mov edx, dword [esp + 0x18]
push str.8CABDCA1_A947_11CF_8EE4_00C00C205365
push edx
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x516353
lea eax, [edi + ebp + 0x2c]
push eax
call fcn.005151e0
add esp, 4
push 1
push ebx
push ebx
push eax
call fcn.00550840
mov ebx, eax
lea ecx, [edi + ebp + 0x28]
mov dword [esp + 0x18], ebx
push ecx
mov ebx, edx
call fcn.005151e0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
xor edx, edx
add ecx, eax
adc ebx, edx
lea edx, [edi + ebp + 0x3c]
mov dword [esi + 0x18], ecx
push edx
mov dword [esi + 0x1c], ebx
call fcn.005151e0
lea eax, [edi + ebp + 0x38]
push eax
call fcn.005151e0
lea ecx, [edi + ebp + 0x44]
mov dword [esi + 0x3088], eax
push ecx
call fcn.005151e0
xor ebx, ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
lea edx, [edi + ebp + 0x40]
fild qword [esp + 0x50]
push edx
fstp qword [esp + 0x48]
call fcn.005151e0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
fild qword [esp + 0x5c]
lea eax, [edi + ebp + 0x54]
push eax
fadd qword [esp + 0x4c]
fmul qword [0x5b9a28]
fstp qword [esi + 0x3098]
call fcn.005151e0
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
fild qword [esp + 0x68]
lea ecx, [edi + ebp + 0x50]
push ecx
fstp qword [esp + 0x50]
call fcn.005151e0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebx
fild qword [esp + 0x74]
add esp, 0x1c
fadd qword [esp + 0x34]
fmul qword [0x5b9a20]
fcom qword [0x5b9a10]
fnstsw ax
test ah, 0x41
jne 0x516334
fcom qword [esi + 0x3098]
fnstsw ax
test ah, 1
je 0x516334
fld qword [esi + 0x3098]
fsub st(1)
fstp qword [esi + 0x3098]
lea edx, [edi + ebp + 0x58]
push edx
fstp st(0)
call fcn.005151e0
add esp, 4
test al, 1
je 0x516353
push str.Live_broacast_flag_is_set_in_mms_header__n
mov ecx, esi
call fcn.004e9e80
mov eax, dword [esp + 0x10]
push str.B7DC0791_A9B7_11CF_8EE6_00C00C205365
push eax
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x5163b5
mov ecx, dword [0x639ad4]
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
lea eax, [edi + ebp + 0x18]
push edx
push eax
mov byte [esp + 0x70], 1
call fcn.005160f0
mov ecx, dword [esp + 0x20]
push str.BC19EFC0_5B4D_11CF_A8FD_00805F5C442B
push ecx
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x5163a7
mov eax, dword [esp + 0x14]
inc dword [eax + 0x30a0]
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0
call fcn.0056a100
mov edx, dword [esp + 0x10]
push str.75B22633_668E_11CF_A6D9_00AA0062CE6C
push edx
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x5164ee
lea esi, [ebp + 0x18]
xor edx, edx
add esi, edi
xor ecx, ecx
xor ebx, ebx
mov al, byte [esi + 1]
mov dl, byte [esi + 3]
mov cl, byte [esi]
mov edi, eax
mov bl, byte [esi + 5]
mov ebp, edx
xor eax, eax
xor edx, edx
mov al, byte [esi + 2]
mov dl, byte [esi + 6]
shl ebp, 8
shl edi, 8
add ebp, eax
xor eax, eax
mov al, byte [esi + 7]
add edi, ecx
xor ecx, ecx
mov cl, byte [esi + 4]
shl ebx, 8
shl eax, 8
add ebx, ecx
add eax, edx
test edi, edi
mov dword [esp + 0x18], eax
je 0x51645a
lea eax, [esi + 0xa]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x68], 2
mov ecx, dword [ecx + 0x30cc]
test ecx, ecx
je 0x51644a
push eax
add ecx, 0x7b8
call fcn.0056a2b0
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x6c], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test ebp, ebp
je 0x5164a0
lea edx, [edi + esi + 0xa]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x68], 3
mov ecx, dword [ecx + 0x30cc]
test ecx, ecx
je 0x516490
push eax
add ecx, 0x7bc
call fcn.0056a2b0
mov eax, dword [esp + 0x34]
push eax
mov byte [esp + 0x6c], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5164e4
add ebx, ebp
add ebx, edi
lea edx, [ebx + esi + 0xa]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x68], 4
mov eax, dword [eax + 0x30cc]
test eax, eax
je 0x5164d8
push esi
lea ecx, [eax + 0x7c0]
call fcn.0056a2b0
push esi
mov byte [esp + 0x6c], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov ecx, dword [esp + 0x10]
push str.5FBF03B5_A92E_11CF_8EE3_00C00C205365
push ecx
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x516673
lea edx, [edi + ebp + 0x2a]
push edx
call fcn.005151e0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x516673
mov eax, dword [0x639ad4]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov byte [esp + 0x68], 5
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
push edx
lea esi, [ecx + ebx + 0x2e]
push esi
call fcn.005160f0
mov eax, dword [esp + 0x2c]
push str.14E6A5CB_C672_4332_8399_A96952065B5A
push eax
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x516640
mov al, byte [esi + 0x55]
xor ecx, ecx
mov cl, byte [esi + 0x54]
xor edx, edx
mov dl, byte [esi + 0x57]
add esi, 0x58
shl eax, 8
add eax, ecx
xor ecx, ecx
mov cl, byte [esi - 2]
shl edx, 8
add edx, ecx
test eax, eax
jle 0x51659d
xor ecx, ecx
xor ebx, ebx
mov cl, byte [esi + 3]
mov bl, byte [esi + 2]
shl ecx, 8
add ecx, ebx
dec eax
lea esi, [esi + ecx + 4]
jne 0x516583
mov ebx, dword [esp + 0x28]
test edx, edx
jle 0x5165b7
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x13]
mov cl, byte [esi + 0x12]
shl eax, 8
add eax, ecx
dec edx
lea esi, [esi + eax + 0x16]
jne 0x5165a1
mov edx, dword [0x639ad4]
mov dword [esp + 0x20], edx
lea eax, [esp + 0x20]
mov byte [esp + 0x68], 6
push eax
push esi
call fcn.005160f0
mov ecx, dword [esp + 0x28]
push str.B7DC0791_A9B7_11CF_8EE6_00C00C205365
push ecx
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x516632
mov edx, dword [0x639ad4]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
add esi, 0x18
push eax
push esi
mov byte [esp + 0x70], 7
call fcn.005160f0
mov ecx, dword [esp + 0x24]
push str.BC19EFC0_5B4D_11CF_A8FD_00805F5C442B
push ecx
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x516624
mov eax, dword [esp + 0x14]
inc dword [eax + 0x30a0]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 6
call fcn.0056a100
lea ecx, [esp + 0x20]
mov byte [esp + 0x68], 5
call fcn.0056a100
mov edx, dword [esp + 0x30]
lea eax, [edx + ebx + 0x3e]
push eax
call fcn.005151e0
add ebx, eax
mov eax, dword [esp + 0x38]
add esp, 4
cmp ebx, eax
mov dword [esp + 0x28], ebx
jb 0x516533
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 0
call fcn.0056a100
xor ebx, ebx
mov eax, dword [esp + 0x2c]
lea ecx, [edi + ebp + 0x10]
inc eax
push ecx
mov dword [esp + 0x30], eax
call fcn.005151e0
add edi, eax
mov eax, dword [esp + 0x78]
add esp, 4
cmp edi, eax
mov dword [esp + 0x28], edi
jge 0x5166fb
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
cmp edx, eax
jb 0x51620a
cmp edi, dword [esp + 0x74]
jge 0x5166fb
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x3088], ebx
ja 0x5166fb
lea eax, [esp + 0x10]
add edi, ebp
push eax
push edi
call fcn.005160f0
mov ecx, dword [esp + 0x18]
push str.75B22636_668E_11CF_A6D9_00AA0062CE6C
push ecx
call fcn.00556b60
add esp, 0x10
test eax, eax
jne 0x5166fb
lea edx, [edi + 0x2c]
push edx
call fcn.005151e0
add edi, 0x28
push edi
call fcn.005151e0
add esp, 8
cmp eax, ebx
jbe 0x5166fb
mov dword [esi + 0x3088], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8