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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x10140004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x2c], 0
push edi
mov dword [esp + 0x34], 0
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x14], ebx
jne 0x1002e3c9
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 0x1002e825
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.101062c0
mov eax, dword [esi + 8]
lea edx, [esp + 0x44]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002e804
cmp dword [esp + 0x3c], eax
jl 0x1002e72f
jg 0x1002e40d
cmp dword [esp + 0x38], 0x20
jbe 0x1002e72f
mov eax, dword [esi + 8]
lea edx, [esp + 0x64]
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 0x1002e804
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x5c], edi
cmp eax, 0x377f0682
jne 0x1002e72f
lea eax, [edi - 1]
test edi, eax
jne 0x1002e72f
cmp edi, 0x10000
jg 0x1002e72f
cmp edi, 0x200
jl 0x1002e72f
mov eax, dword [esp + 0x70]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x78]
and dl, 1
bswap eax
mov dword [esi + 0x58], ecx
push ebx
movzx ecx, dl
mov byte [esi + 0x41], dl
xor ecx, 1
mov dword [esi + 0x70], eax
lea edx, [esp + 0x68]
mov eax, dword [esp + 0x78]
push 0
push 0x18
mov dword [esi + 0x24], edi
mov dword [esi + 0x54], eax
call fcn.1002dfa0
mov eax, dword [esp + 0x88]
add esp, 0xc
bswap eax
cmp dword [ebx], eax
jne 0x1002e72f
mov eax, dword [esp + 0x80]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x1002e72f
mov eax, dword [esp + 0x68]
bswap eax
cmp eax, 0x2de218
je 0x1002e505
push 0x10131d5c
push 0xfc08
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.1001fea0
add esp, 0x14
mov edi, 0xe
jmp 0x1002e800
lea ebx, [edi + 0x18]
mov dword [esp + 0x4c], ebx
call fcn.100be130
test eax, eax
jne 0x1002e772
lea eax, [edi + 0x8018]
push 0
push eax
call fcn.1001cb50
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x1002e772
mov ecx, dword [esp + 0x3c]
add eax, 0x18
mov dword [esp + 0x50], eax
add eax, edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
sub edi, 0x20
mov eax, ebx
cdq
sbb ecx, 0
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.10116fb0
mov ecx, eax
xor edx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
lea eax, [ecx + 0x21]
shr eax, 0xc
mov dword [esp + 0x60], eax
nop
mov ebx, edx
shl ebx, 0xc
lea eax, [ebx + 0xfde]
cmp dword [esp + 0x2c], eax
cmovae ecx, eax
mov dword [esp + 0x20], ecx
test edx, edx
jne 0x1002e5a4
mov dword [esp + 0xc], 1
jmp 0x1002e5ab
add ebx, 0xffffffdf
mov dword [esp + 0xc], ebx
cmp dword [esi + 0x18], edx
jle 0x1002e5c6
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x1002e5c6
xor edi, edi
jmp 0x1002e5e7
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.1002de60
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002e71b
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x28]
mov dword [eax + edx*4], ebx
mov ebx, dword [esp + 0xc]
cmp ebx, ecx
ja 0x1002e6c4
push dword [esp + 0x44]
mov edi, dword [esi + 8]
push dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
dec eax
mov ebx, dword [edi]
push 0
push eax
call fcn.10117120
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 0x1002e6bc
push dword [esp + 0x10]
lea eax, [esp + 0x5c]
mov ecx, esi
push dword [esp + 0x54]
lea edx, [esp + 0x5c]
push eax
call fcn.1002e0e0
mov ebx, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x1002e6c0
push dword [esp + 0x54]
mov edx, ebx
mov ecx, esi
call fcn.1002e240
mov edi, eax
add esp, 4
test edi, edi
jne 0x1002e6c0
mov eax, dword [esp + 0x58]
test eax, eax
je 0x1002e6ab
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], ebx
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x34], eax
inc ebx
mov dword [esp + 0xc], ebx
cmp ebx, dword [esp + 0x20]
jbe 0x1002e605
jmp 0x1002e6c0
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [eax + edx*4], ecx
xor ecx, ecx
test edx, edx
mov eax, 0x88
mov edx, 0x7f78
cmove ecx, eax
mov eax, 0x8000
cmove eax, edx
push eax
mov eax, dword [esp + 0x2c]
add eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
call fcn.10107750
add esp, 0xc
cmp ebx, dword [esp + 0x20]
jbe 0x1002e71b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x60]
jbe 0x1002e580
push dword [esp + 0x10]
call fcn.1001cd70
add esp, 4
test edi, edi
jne 0x1002e800
mov eax, dword [esp + 0x30]
mov ecx, esi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x50], eax
call fcn.1002e050
mov eax, dword [esi + 0x20]
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
cmp byte [esi + 0x2b], 0
je 0x1002e77c
xor edi, edi
jmp 0x1002e79c
mov edi, 7
jmp 0x1002e800
mov ecx, dword [esi + 4]
lea eax, [ebx + 3]
push 0xa
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1002e7d3
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jne 0x1002e7ad
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1002e7ad
mov dword [ecx + 8], eax
jmp 0x1002e7b5
mov dword [ecx + ebx*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x1002e7dc
mov ecx, dword [esi + 4]
lea eax, [ebx + 3]
push 9
push 1
push eax
mov edx, dword [ecx]
push ecx
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
jmp 0x1002e7d8
cmp edi, 5
jne 0x1002e800
mov ecx, dword [esp + 0x10]
inc ebx
cmp ebx, 5
jl 0x1002e768
cmp dword [esi + 0x48], 0
je 0x1002e800
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.1001fea0
add esp, 0x10
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x2b], 0
jne 0x1002e823
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
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101049d1
mov esp, ebp
pop ebp
ret