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

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x2c]
push edi
push eax
push ecx
push esi
push str.gen_seek:__d__lld_n
push ebp
mov edx, 2
call fcn.004a81a0
add esp, 0x14
cmp dword [esp + 0x54], 0
mov ebx, bind
jne 0x498abf
cmp dword [esp + 0x58], ebx
jne 0x498abf
mov edx, dword [ebp + 0xf50]
mov eax, dword [ebp + 0xf54]
push bind
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
push esi
push ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call dword [esp + 0x80]
add esp, 0x14
test eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
jne 0x498abf
cmp edx, ebx
je 0x498b4e
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x498bfa
cmp dword [esp + 0x60], ebx
jne 0x498bfa
lea esi, [ebp + 0x10]
mov edi, 0x400
call fcn.00499e70
mov ecx, edx
mov esi, eax
sub esi, 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
sbb ecx, 0
jmp 0x498afa
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov eax, edi
cdq
sub esi, eax
sbb ecx, edx
add eax, esi
adc edx, ecx
push edx
push eax
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x78]
push ebx
push ebp
mov dword [esp + 0x5c], ecx
call esi
add esp, 0x14
add edi, edi
test eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
jne 0x498b5c
cmp edx, 0x80000000
jne 0x498b5c
mov ecx, dword [esp + 0x48]
mov eax, edi
cdq
cmp ecx, edx
jg 0x498af6
jl 0x498b4e
mov esi, dword [esp + 0x44]
cmp esi, eax
jae 0x498afa
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push bind
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push edx
add eax, 1
adc ecx, 0
push ebx
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call esi
add esp, 0x14
test eax, eax
jne 0x498b91
cmp edx, 0x80000000
je 0x498be4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x60], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
jg 0x498be4
jl 0x498bb7
cmp ecx, dword [esp + 0x20]
jae 0x498be4
add ecx, 1
adc eax, 0
push bind
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
mov dword [esp + 0x24], ecx
call esi
add esp, 0x14
test eax, eax
jne 0x498b91
cmp edx, 0x80000000
jne 0x498b91
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
jmp 0x498bfe
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x60]
cmp edx, esi
jl 0x498c20
jg 0x498c12
cmp dword [esp + 0x54], edi
jbe 0x498c24
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [esp + 0x54], edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
jne 0x498c3c
cmp edx, esi
jne 0x498c3c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
mov ebx, eax
cmp eax, ebx
mov dword [esp + 0x10], 0
jg 0x498c50
jl 0x498c8c
cmp ecx, dword [esp + 0x4c]
jb 0x498c8c
mov edx, dword [esp + 0x64]
and edx, 1
jne 0x498c61
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x498efa
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
jmp 0x498efe
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c]
push edi
push edx
mov edx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push edx
push eax
push ecx
push str.pos_min0x_llx_pos_max0x_llx_dts_min_lld_dts_max_lld_n
push ebp
mov edx, 2
call fcn.004a81a0
add esp, 0x28
cmp ebx, dword [esp + 0x48]
jl 0x498ce4
jg 0x498ccd
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x44]
jbe 0x498ce4
push 0x4a6
push str......._srclibavformatutils.c
push str.pos_limit___pos_max
call fcn.004e6511
add esp, 0xc
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
jne 0x498d4d
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
sub edx, eax
sbb ebx, ecx
push 5
push ebx
mov ebx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x50]
sub edx, edi
sbb ebx, esi
push ebx
push edx
mov edx, dword [esp + 0x48]
sub edx, eax
mov eax, dword [esp + 0x4c]
sbb eax, ecx
push eax
push edx
call fcn.004a8690
add esp, 0x1c
mov ecx, edi
sub ecx, dword [esp + 0x44]
mov ebx, esi
sbb ebx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x4c]
adc edx, ebx
mov ebx, dword [esp + 0x50]
add eax, ecx
adc edx, ebx
jmp 0x498d69
cmp dword [esp + 0x10], 1
jne 0x498d7b
mov eax, edi
add eax, dword [esp + 0x4c]
mov edx, esi
adc edx, ebx
mov cl, 1
call fcn.0050de10
mov ecx, dword [esp + 0x4c]
cmp edx, esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jg 0x498d87
jl 0x498d7b
cmp eax, edi
ja 0x498d87
add edi, 1
adc esi, 0
mov eax, edi
mov edx, esi
jmp 0x498d95
cmp edx, ebx
jl 0x498d9d
jg 0x498d91
cmp eax, ecx
jbe 0x498d9d
mov eax, ecx
mov edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
push bind
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
call dword [esp + 0x80]
mov ecx, dword [esp + 0x58]
mov esi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x14
cmp eax, ecx
mov ebp, edx
jne 0x498dde
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x48]
jne 0x498dde
add dword [esp + 0x10], 1
jmp 0x498de6
mov dword [esp + 0x10], 0
push dword [esp + 0x10]
mov edx, dword [esp + 0x54]
push ebx
push edi
push edx
mov edx, dword [esp + 0x5c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push ebp
push esi
push edx
mov edx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x80]
push edx
push eax
push str._lld__lld__lld____lld__lld__lld_target:_lld_limit:_lld_start:_lld_noc:_d_n
push ecx
mov edx, 2
call fcn.004a81a0
add esp, 0x54
test esi, esi
jne 0x498e59
cmp ebp, 0x80000000
je 0x498ed8
mov edx, dword [esp + 0x38]
cmp edx, ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
jg 0x498e9b
jl 0x498e71
cmp dword [esp + 0x34], esi
ja 0x498e8f
sub edi, 1
sbb ebx, 0
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebp
cmp edx, ebp
jl 0x498ead
jg 0x498e9b
cmp dword [esp + 0x34], esi
jb 0x498ead
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], ebp
jmp 0x498eb5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x50]
jl 0x498c80
jg 0x498ecb
cmp ecx, dword [esp + 0x4c]
jb 0x498c80
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
jmp 0x498c50
mov edx, dword [esp + 0x2c]
push str.read_timestamp___failed_in_the_middle_n
push edx
xor edx, edx
call fcn.004a81a0
add esp, 8
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x60]
push bind
mov dword [esp + 0x44], eax
push 0xffffffffffffffff
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
push eax
push ecx
push ebp
mov dword [esp + 0x6c], edx
call dword [esp + 0x80]
add esp, 0x14
add dword [esp + 0x3c], 1
push bind
mov ebx, edx
adc dword [esp + 0x44], 0
push 0xffffffffffffffff
lea edx, [esp + 0x44]
mov esi, eax
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
call dword [esp + 0x80]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebx
push esi
push eax
push ecx
push str.pos0x_llx__lld__lld__lld_n
push ebp
mov edx, 2
call fcn.004a81a0
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x80]
add esp, 0x28
mov dword [eax], edi
pop edi
pop esi
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop ebp
pop ebx
add esp, 0x18
ret