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

Disassembly:
sub esp, 0x80
mov eax, dword [0x101a2ce4]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x90]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x10], ebx
jne 0x1015a685
mov ecx, dword [esi + 4]
mov eax, 3
push 0xa
sub eax, ebx
push eax
mov edx, dword [ecx]
push ebx
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x1015aad3
push edi
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.1016bd70
mov eax, dword [esi + 8]
lea edx, [esp + 0x48]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1015aab1
cmp dword [esp + 0x40], ebp
jl 0x1015a9e1
jg 0x1015a6c7
cmp dword [esp + 0x3c], 0x20
jbe 0x1015a9e1
mov eax, dword [esi + 8]
lea edx, [esp + 0x6c]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1015aab1
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x74]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x5c], edi
cmp eax, 0x377f0682
jne 0x1015a9e1
lea eax, [edi - 1]
test edi, eax
jne 0x1015a9e1
cmp edi, 0x10000
jg 0x1015a9e1
cmp edi, 0x200
jl 0x1015a9e1
mov eax, dword [esp + 0x78]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x80]
and dl, 1
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x7c]
push ebx
mov dword [esi + 0x54], eax
lea eax, [esp + 0x70]
push 0
push 0x18
push eax
movzx eax, dl
xor eax, 1
mov byte [esi + 0x41], dl
push eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], ecx
call fcn.10159f20
mov eax, dword [esp + 0x98]
add esp, 0x14
bswap eax
cmp dword [ebx], eax
jne 0x1015a9e1
mov eax, dword [esp + 0x88]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x1015a9e1
mov eax, dword [esp + 0x70]
bswap eax
cmp eax, 0x2de218
je 0x1015a7ad
push 0xfaf2
call fcn.1010e670
mov edi, eax
jmp 0x1015a9d6
lea eax, [edi + 0x8018]
push 0
lea ebx, [edi + 0x18]
push eax
mov dword [esp + 0x54], ebx
call fcn.100d7220
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1015a7d5
lea edi, [eax + 7]
jmp 0x1015aaad
mov ecx, dword [esp + 0x40]
add eax, 0x18
mov dword [esp + 0x50], eax
add eax, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, ebp
mov ebx, eax
mov eax, edx
push eax
push ebx
push ecx
push edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], eax
call fcn.1016a880
mov edx, eax
mov dword [esp + 0x60], 0x7f78
xor ebx, ebx
mov dword [esp + 0x68], edx
mov dword [esp + 0x20], ebx
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x64], eax
mov ebp, ebx
mov ecx, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae ecx, eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
jne 0x1015a844
lea ebp, [ebx + 1]
jmp 0x1015a847
add ebp, 0xffffffdf
cmp dword [esi + 0x18], ebx
jle 0x1015a874
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x20]
lea edi, [ebx*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], edi
mov eax, dword [edi + eax]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x1015a87b
xor edi, edi
jmp 0x1015a8a7
lea eax, [esi + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x24]
push eax
push ebx
push esi
call fcn.1015a2f0
mov edx, dword [esp + 0x24]
mov edi, eax
lea eax, [ebx*4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], eax
add esp, 0xc
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1015a9c9
mov ebx, dword [esp + 0x28]
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
mov dword [ebx + eax], ecx
mov ebx, dword [esp + 0x20]
cmp ebp, dword [esp + 0x1c]
ja 0x1015a97d
nop word [eax + eax]
push dword [esp + 0x44]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x4c]
push 0
mov ebx, dword [edi]
push eax
call fcn.1016a930
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x54]
mov eax, dword [ebx + 8]
push dword [esp + 0x1c]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1015a975
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
push dword [esp + 0x54]
push eax
lea eax, [esp + 0x60]
push eax
push esi
call fcn.1015a050
add esp, 0x14
test eax, eax
je 0x1015a975
push dword [esp + 0x54]
push ebp
push esi
call fcn.1015a160
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1015a975
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1015a96a
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x5c]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], ebp
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x38], eax
inc ebp
cmp ebp, dword [esp + 0x1c]
jbe 0x1015a8d0
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
test ebx, ebx
mov dword [eax + ebx*4], edx
mov eax, 0x88
cmove ecx, eax
mov eax, 0x8000
cmove eax, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
lea eax, [ecx + edx]
push eax
call fcn.1016b7f0
add esp, 0xc
cmp ebp, dword [esp + 0x1c]
jbe 0x1015a9c9
mov edx, dword [esp + 0x68]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x64]
jbe 0x1015a825
push dword [esp + 0x10]
call fcn.100d72a0
mov ebp, dword [esp + 0x38]
add esp, 4
test edi, edi
jne 0x1015aaad
mov eax, dword [esp + 0x38]
push esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.1015aca0
mov eax, dword [esi + 0x20]
add esp, 4
mov ebx, 1
mov ecx, dword [eax]
add ecx, 0x60
mov dword [esp + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x44]
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0
nop dword [eax + eax]
cmp byte [esi + 0x2b], 0
lea ebp, [ebx + 3]
je 0x1015aa2d
xor edi, edi
jmp 0x1015aa4a
mov ecx, dword [esi + 4]
push 0xa
push 1
push ebp
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1015aa80
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jne 0x1015aa5d
cmp dword [esi + 0x44], 0
je 0x1015aa5d
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
jmp 0x1015aa65
mov dword [ecx + ebx*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x1015aa89
mov eax, dword [esi + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
jmp 0x1015aa85
cmp edi, 5
jne 0x1015aaad
mov ecx, dword [esp + 0x10]
inc ebx
cmp ebx, 5
jl 0x1015aa20
cmp dword [esi + 0x48], 0
je 0x1015aaad
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.100c9ef0
add esp, 0x10
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x2b], 0
jne 0x1015aad0
mov eax, dword [esi + 4]
mov edx, 3
push 9
sub edx, ebx
push edx
mov ecx, dword [eax]
push ebx
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov eax, edi
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10169f7a
add esp, 0x80
ret