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

Disassembly:
sub esp, 0x68
push ebp
push esi
mov esi, dword [esp + 0x74]
xor ebp, ebp
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
movzx edi, byte [esi + 0x2d]
inc edi
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x78], edi
jne 0x57f854
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, edi
push eax
mov edx, dword [ecx]
push edi
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x57fc3c
push ebx
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
lea edx, [esp + 0x5c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x57fc1a
cmp dword [esp + 0x54], ebp
jl 0x57fb5c
jg 0x57f896
cmp dword [esp + 0x50], 0x20
jbe 0x57fb5c
mov eax, dword [esi + 8]
lea edx, [esp + 0x58]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x57fc1a
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x38], edi
cmp eax, 0x377f0682
jne 0x57fb5c
lea eax, [edi - 1]
test edi, eax
jne 0x57fb5c
lea eax, [edi - 0x200]
cmp eax, 0xfe00
ja 0x57fb5c
mov eax, dword [esp + 0x64]
lea ebx, [esi + 0x4c]
bswap eax
mov dword [esi + 0x70], eax
and cl, 1
mov eax, dword [esp + 0x68]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x6c]
push ebx
mov dword [esi + 0x58], eax
lea eax, [esp + 0x5c]
push 0
push 0x18
push eax
mov eax, ebp
mov byte [esi + 0x41], cl
sete al
mov dword [esi + 0x24], edi
push eax
call fcn.0057ef90
mov eax, dword [esp + 0x84]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x57fb5c
mov eax, dword [esp + 0x74]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x57fb5c
mov eax, dword [esp + 0x5c]
bswap eax
cmp eax, 0x2de218
je 0x57f96e
push 0xf34c
call fcn.00533450
mov ebx, eax
jmp 0x57fb51
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x1c], ebx
push 0
push eax
call fcn.004df970
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x57f996
lea ebx, [eax + 7]
jmp 0x57fc16
mov ecx, dword [esp + 0x54]
add eax, 0x18
mov dword [esp + 0x2c], eax
add eax, edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x20], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
push edx
push eax
push ecx
push edi
call fcn.0042e900
mov edx, eax
xor ebp, ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ebp
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x40], eax
mov eax, ebp
shl eax, 0xc
add eax, 0xfde
mov dword [esp + 0x10], eax
cmp edx, eax
jae 0x57f9e8
mov dword [esp + 0x10], edx
test ebp, ebp
jne 0x57f9f0
xor edi, edi
jmp 0x57f9fc
lea edi, [ebp - 1]
shl edi, 0xc
add edi, 0xfde
lea eax, [esp + 0x14]
push eax
push ebp
push esi
call fcn.0057f470
add esp, 0xc
mov ebx, eax
cmp dword [esp + 0x14], 0
je 0x57fb44
mov eax, dword [esi + 0x20]
inc edi
mov ecx, dword [esp + 0x20]
mov dword [eax + ebp*4], ecx
cmp edi, dword [esp + 0x10]
ja 0x57fae5
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
cdq
mov dword [esp + 0x28], eax
mov eax, edx
mov dword [esp + 0x3c], eax
push eax
push dword [esp + 0x2c]
lea ecx, [edi - 1]
push 0
push ecx
call fcn.0042eb30
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 8]
call fcn.0054f470
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x57fae1
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push dword [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0057f0e0
add esp, 0x14
test eax, eax
je 0x57fae1
push dword [esp + 0x30]
push edi
push esi
call fcn.0057f2d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x57fae1
mov eax, dword [esp + 0x34]
test eax, eax
je 0x57fad4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x38]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], edi
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
inc edi
cmp edi, ebp
jbe 0x57fa40
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0x20]
mov edx, ebp
mov ecx, dword [esp + 0x14]
neg edx
sbb edx, edx
mov dword [eax + ebp*4], ecx
and edx, 0xffffff78
add edx, 0x88
mov eax, edx
shr eax, 2
lea ecx, [eax*4]
mov eax, 0x8000
sub eax, edx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
mov eax, dword [esp + 0x1c]
add eax, ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp edi, dword [esp + 0x10]
jbe 0x57fb44
mov edx, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x24], ebp
cmp ebp, dword [esp + 0x40]
jbe 0x57f9d2
push dword [esp + 0x18]
call fcn.004dfad0
mov ebp, dword [esp + 0x4c]
add esp, 4
test ebx, ebx
jne 0x57fc16
mov eax, dword [esp + 0x4c]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.0057fd60
mov eax, dword [esi + 0x20]
add esp, 4
mov edi, 1
mov ebp, dword [eax]
mov dword [ebp + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x64], 0
cmp byte [esi + 0x2b], 0
je 0x57fb9a
xor ebx, ebx
jmp 0x57fbb6
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x57fbed
cmp edi, 1
jne 0x57fbc7
mov eax, dword [esi + 0x44]
test eax, eax
je 0x57fbc7
mov dword [ebp + 0x68], eax
jmp 0x57fbcf
mov dword [ebp + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x57fbf2
mov ecx, dword [esi + 4]
lea eax, [edi + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x57fbf2
cmp ebx, 5
jne 0x57fc16
inc edi
cmp edi, 5
jl 0x57fb90
cmp dword [esi + 0x48], 0
je 0x57fc16
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.004e9df0
add esp, 0x10
mov edi, dword [esp + 0x7c]
cmp byte [esi + 0x2b], 0
jne 0x57fc39
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, edi
push edx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x68
ret