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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x100cc020]
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 0x10045f57
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 0x10046289
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 0x10046269
cmp dword [esp + 0x24], esi
jl 0x10046206
jg 0x10045f9c
cmp dword [esp + 0x20], 0x20
jbe 0x10046206
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 0x10046269
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 0x10046206
lea edx, [esi - 1]
test esi, edx
jne 0x10046206
lea ecx, [esi - 0x200]
cmp ecx, 0xfe00
ja 0x10046206
and al, 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], al
mov byte [ebx + 0x31], al
mov dword [ebx + 0x18], esi
call fcn.1003d640
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.10045a10
add esp, 8
lea ecx, [esp + 0x74]
call fcn.1003d640
cmp dword [edi], eax
jne 0x10046202
lea ecx, [esp + 0x78]
call fcn.1003d640
cmp dword [ebx + 0x40], eax
jne 0x10046202
lea ecx, [esp + 0x60]
call fcn.1003d640
cmp eax, 0x2de218
je 0x100460c2
mov eax, 0xa3c2
call fcn.100913b0
mov dword [esp + 0x10], eax
jmp 0x10046202
lea edi, [esi + 0x18]
call fcn.1008f3f0
test eax, eax
jne 0x100460df
push edi
call fcn.1003a650
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100460f0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 7
jmp 0x10046269
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 0x100461f5
jl 0x10046136
cmp ecx, dword [esp + 0x20]
ja 0x100461f5
jmp 0x10046136
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.10039b70
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100461f9
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.10045bf0
add esp, 0xc
test eax, eax
je 0x100461f5
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.10045e00
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100461f5
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x100461c7
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 0x10046132
jg 0x100461f5
cmp ecx, dword [esp + 0x20]
jbe 0x10046132
mov esi, dword [esp + 0x1c]
push esi
call fcn.1003a950
add esp, 4
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x10046269
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.10045ac0
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 0x10046240
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10046269
mov ecx, dword [ebx + 0x54]
push ecx
push eax
push str.Recovered__d_frames_from_WAL_file__s
xor eax, eax
call fcn.1003c0c0
add esp, 0xc
cmp byte [ebx + 0x1e], 0
jne 0x10046285
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.1009ecb4
mov esp, ebp
pop ebp
ret