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

Disassembly:
sub esp, 0x6c
push ebx
push esi
mov esi, dword [esp + 0x78]
xor ebx, ebx
push edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
movzx edi, byte [esi + 0x2d]
inc edi
mov dword [esp + 0x7c], edi
cmp byte [esi + 0x2b], bl
jne 0x4f2393
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 0x4f278f
push ebp
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
lea edx, [esp + 0x60]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4f276d
cmp dword [esp + 0x58], ebx
jl 0x4f26a5
jg 0x4f23d5
cmp dword [esp + 0x54], 0x20
jbe 0x4f26a5
mov eax, dword [esi + 8]
lea edx, [esp + 0x5c]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4f276d
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x64]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x34], edi
cmp eax, 0x377f0682
jne 0x4f26a5
lea eax, [edi - 1]
test edi, eax
jne 0x4f26a5
lea eax, [edi - 0x200]
cmp eax, 0xfe00
ja 0x4f26a5
mov eax, dword [esp + 0x68]
lea ebp, [esi + 0x4c]
bswap eax
mov dword [esi + 0x70], eax
and cl, 1
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x70]
push ebp
mov dword [esi + 0x58], eax
lea eax, [esp + 0x60]
push 0
push 0x18
push eax
mov eax, ebx
mov byte [esi + 0x41], cl
sete al
mov dword [esi + 0x24], edi
push eax
call fcn.004f1ae0
mov eax, dword [esp + 0x88]
add esp, 0x14
bswap eax
cmp dword [ebp], eax
jne 0x4f26a5
mov eax, dword [esp + 0x78]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x4f26a5
mov eax, dword [esp + 0x60]
bswap eax
cmp eax, 0x2de218
je 0x4f24ae
push 0xecf7
call fcn.004a9ae0
mov ebp, eax
jmp 0x4f269a
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x1c], ebx
push 0
push eax
call fcn.0045d540
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4f24d6
lea ebp, [eax + 7]
jmp 0x4f2766
mov ecx, dword [esp + 0x58]
add eax, 0x18
mov dword [esp + 0x28], eax
add eax, edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, 0
push edx
push eax
push ecx
push edi
call fcn.00402060
xor edi, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], edi
lea ecx, [eax + 0x21]
shr ecx, 0xc
mov dword [esp + 0x44], ecx
mov ecx, edi
shl ecx, 0xc
add ecx, 0xfde
mov dword [esp + 0x10], ecx
cmp eax, ecx
jae 0x4f2528
mov dword [esp + 0x10], eax
test edi, edi
jne 0x4f2530
xor ebx, ebx
jmp 0x4f253c
lea ebx, [edi - 1]
shl ebx, 0xc
add ebx, 0xfde
lea eax, [esp + 0x40]
push eax
push edi
push esi
call fcn.004f1fb0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4f268d
mov eax, dword [esi + 0x20]
lea ecx, [edi*4]
mov edi, dword [esp + 0x10]
inc ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov dword [ecx + eax], edx
cmp ebx, edi
ja 0x4f262b
mov eax, dword [esp + 0x1c]
cdq
mov dword [esp + 0x24], eax
mov eax, edx
mov dword [esp + 0x38], eax
push eax
push dword [esp + 0x28]
lea ecx, [ebx - 1]
push 0
push ecx
call fcn.004021f0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esi + 8]
call fcn.004c3fa0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4f2627
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push dword [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.004f1c30
add esp, 0x14
test eax, eax
je 0x4f2627
push dword [esp + 0x2c]
push ebx
push esi
call fcn.004f1e10
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4f2627
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4f261a
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x34]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebx
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
inc ebx
cmp ebx, edi
jbe 0x4f2586
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x20]
neg edx
mov edi, dword [esp + 0x40]
sbb edx, edx
and edx, 0xffffff78
mov dword [ecx + eax], edi
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
lea eax, [ecx + edi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp ebx, dword [esp + 0x10]
jbe 0x4f268d
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
inc edi
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x44]
jbe 0x4f2511
push dword [esp + 0x18]
call fcn.0045d750
mov ebx, dword [esp + 0x50]
add esp, 4
test ebp, ebp
jne 0x4f2766
mov eax, dword [esp + 0x50]
push esi
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], eax
call fcn.004f28b0
mov eax, dword [esi + 0x20]
add esp, 4
mov edi, 1
mov ebx, dword [eax]
mov dword [ebx + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x64], 0
lea esp, [esp]
cmp byte [esi + 0x2b], 0
je 0x4f26ea
xor ebp, ebp
jmp 0x4f2706
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 ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4f273d
cmp edi, 1
jne 0x4f2717
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4f2717
mov dword [ebx + 0x68], eax
jmp 0x4f271f
mov dword [ebx + edi*4 + 0x64], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x4f2742
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 0x4f2742
cmp ebp, 5
jne 0x4f2766
inc edi
cmp edi, 5
jl 0x4f26e0
cmp dword [esi + 0x48], 0
je 0x4f2766
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.00466a50
add esp, 0x10
mov edi, dword [esp + 0x80]
cmp byte [esi + 0x2b], 0
jne 0x4f278c
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, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x6c
ret