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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x100fc018]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, ecx
push esi
push edi
movzx edi, byte [ebx + 0x20]
inc edi
xor esi, esi
mov ecx, 8
sub ecx, edi
cmp byte [ebx + 0x1e], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], ecx
jne 0x1005ef87
mov eax, dword [ebx + 4]
mov edx, dword [eax]
push 0xa
push ecx
push edi
push eax
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
cmp eax, esi
jne 0x1005f2b9
push 0x30
lea ecx, [ebx + 0x24]
push esi
push ecx
call sub.MSVCR90.dll_memset
mov eax, dword [ebx + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x1005f299
cmp dword [esp + 0x24], esi
jl 0x1005f236
jg 0x1005efcc
cmp dword [esp + 0x20], 0x20
jbe 0x1005f236
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push esi
push esi
push 0x20
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x1005f299
movzx eax, byte [esp + 0x5c]
movzx ecx, byte [esp + 0x5d]
movzx edx, byte [esp + 0x5e]
movzx esi, byte [esp + 0x64]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x5f]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x65]
shl esi, 8
or esi, edx
movzx edx, byte [esp + 0x67]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x66]
shl esi, 8
or esi, ecx
shl esi, 8
mov ecx, eax
or esi, edx
and ecx, 0xfffffffe
mov dword [esp + 0x2c], esi
cmp ecx, 0x377f0682
jne 0x1005f236
lea edx, [esi - 1]
test esi, edx
jne 0x1005f236
lea ecx, [esi - 0x200]
cmp ecx, 0xfe00
ja 0x1005f236
and al, 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], al
mov byte [ebx + 0x31], al
mov dword [ebx + 0x18], esi
call fcn.100566a0
mov edx, dword [esp + 0x6c]
xor ecx, ecx
cmp byte [esp + 0x17], cl
lea edi, [ebx + 0x3c]
sete cl
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x70]
push edi
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], eax
lea eax, [esp + 0x60]
push ecx
xor ecx, ecx
lea edx, [ecx + 0x18]
call fcn.1005ea40
add esp, 8
lea ecx, [esp + 0x74]
call fcn.100566a0
cmp dword [edi], eax
jne 0x1005f232
lea ecx, [esp + 0x78]
call fcn.100566a0
cmp dword [ebx + 0x40], eax
jne 0x1005f232
lea ecx, [esp + 0x60]
call fcn.100566a0
cmp eax, 0x2de218
je 0x1005f0f2
mov eax, 0xa3c2
call fcn.100aa3e0
mov dword [esp + 0x10], eax
jmp 0x1005f232
lea edi, [esi + 0x18]
call fcn.100a8430
test eax, eax
jne 0x1005f10f
push edi
call fcn.100536b0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1005f120
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 7
jmp 0x1005f299
lea eax, [esi + 0x18]
cdq
mov ecx, eax
mov edi, 0x20
mov dword [esp + 0x40], eax
add ecx, edi
mov eax, edx
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], edx
jg 0x1005f225
jl 0x1005f166
cmp ecx, dword [esp + 0x20]
ja 0x1005f225
jmp 0x1005f166
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 8]
push edx
push edi
add esi, 0x18
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.10052be0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005f229
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.1005ec20
add esp, 0xc
test eax, eax
je 0x1005f225
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
inc esi
push edx
push ebx
mov eax, esi
mov dword [esp + 0x40], esi
call fcn.1005ee30
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005f225
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1005f1f7
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x34], esi
mov word [ebx + 0x32], cx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
add edi, ecx
adc edx, eax
add ecx, edi
adc eax, edx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x54], edx
jl 0x1005f162
jg 0x1005f225
cmp ecx, dword [esp + 0x20]
jbe 0x1005f162
mov esi, dword [esp + 0x1c]
push esi
call fcn.100539b0
add esp, 4
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x1005f299
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [ebx + 0x40], edx
mov edx, ebx
mov dword [ebx + 0x3c], ecx
call fcn.1005eaf0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax]
add eax, 0x60
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 8
mov ecx, 4
nop
mov dword [eax], 0xffffffff
add eax, 4
sub ecx, 1
jne 0x1005f270
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1005f299
mov ecx, dword [ebx + 0x54]
push ecx
push eax
push str.Recovered__d_frames_from_WAL_file__s
xor eax, eax
call fcn.10055120
add esp, 0xc
cmp byte [ebx + 0x1e], 0
jne 0x1005f2b5
mov eax, dword [esp + 0x58]
mov ebx, dword [ebx + 4]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x38]
push 9
push eax
push edi
push ebx
call ecx
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ba2f9
mov esp, ebp
pop ebp
ret