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

Disassembly:
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, 3
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
movzx ebx, byte [esi + 0x2d]
inc ebx
sub edi, ebx
mov dword [esp + 0x5c], ebx
cmp byte [esi + 0x2b], 0
jne 0x1003c126
mov eax, dword [esi + 4]
push 0xa
push edi
push ebx
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x1003c6bb
mov ecx, edi
mov eax, 1
shl eax, cl
lea ecx, [ebx + 8]
dec eax
shl eax, cl
or dword [esi + 0x74], eax
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.1013ad10
mov eax, dword [esi + 8]
lea edx, [esp + 0x3c]
add esp, 0xc
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1003c682
cmp dword [esp + 0x34], ebp
jl 0x1003c51a
jg 0x1003c16a
cmp dword [esp + 0x30], 0x20
jbe 0x1003c51a
mov eax, dword [esi + 8]
lea edx, [esp + 0x84]
push 0
push 0
push 0x20
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1003c682
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x8c]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x50], edi
cmp eax, 0x377f0682
jne 0x1003c51a
lea eax, [edi - 1]
test edi, eax
jne 0x1003c51a
cmp edi, 0x10000
jg 0x1003c51a
cmp edi, 0x200
jl 0x1003c51a
mov eax, dword [esp + 0x90]
lea ebx, [esi + 0x4c]
mov ecx, dword [esp + 0x98]
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 + 0x88]
mov eax, dword [esp + 0x98]
push 0
push 0x18
mov dword [esi + 0x24], edi
mov dword [esi + 0x54], eax
call fcn.1003bbe0
mov eax, dword [esp + 0xa8]
add esp, 0xc
bswap eax
cmp dword [ebx], eax
jne 0x1003c51a
mov eax, dword [esp + 0xa0]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x1003c51a
mov eax, dword [esp + 0x88]
bswap eax
cmp eax, 0x2de218
je 0x1003c27a
push 0x10167d54
push 0x1009d
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.1002a9f0
add esp, 0x14
mov ebx, 0xe
jmp 0x1003c682
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x40], ebx
push 0
push eax
call fcn.10027cd0
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [esi + 0x78], eax
test eax, eax
jne 0x1003c2a5
lea ebx, [eax + 7]
jmp 0x1003c682
mov ecx, dword [esp + 0x34]
add eax, 0x18
mov dword [esp + 0x44], eax
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x24], 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 + 0x4c], ebx
mov dword [esp + 0x48], eax
call fcn.1014b3b0
mov ecx, eax
xor eax, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x18], eax
lea edx, [ecx + 0x21]
shr edx, 0xc
mov dword [esp + 0x54], edx
nop dword [eax]
mov ebp, eax
shl ebp, 0xc
lea edi, [ebp + 0xfde]
cmp ecx, edi
cmovb edi, ecx
mov dword [esp + 0x14], edi
test eax, eax
jne 0x1003c30d
lea ebp, [eax + 1]
jmp 0x1003c310
add ebp, 0xffffffdf
lea ecx, [esp + 0x20]
mov edx, eax
push ecx
mov ecx, esi
call fcn.1003ba60
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1003c4a8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x80], edx
mov dword [eax + edx*4], ecx
cmp ebp, edi
ja 0x1003c403
nop
push dword [esp + 0x38]
mov edi, dword [esi + 8]
lea eax, [ebp - 1]
push dword [esp + 0x40]
push 0
mov ebx, dword [edi]
push eax
call fcn.1014b520
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x48]
mov eax, dword [ebx + 8]
push dword [esp + 0x28]
push edi
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1003c3fb
push dword [esp + 0x1c]
lea eax, [esp + 0x50]
mov ecx, esi
push dword [esp + 0x48]
lea edx, [esp + 0x50]
push eax
call fcn.1003bdc0
add esp, 0xc
test eax, eax
je 0x1003c3fb
push dword [esp + 0x48]
mov edx, ebp
mov ecx, esi
call fcn.1003bfa0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003c3fb
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1003c3ec
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x50]
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 + 0x28], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x14]
inc ebp
cmp ebp, edi
jbe 0x1003c350
jmp 0x1003c3ff
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x20]
mov dword [eax + edx*4], ecx
xor ecx, ecx
test edx, edx
mov dword [esi + 0x80], 0
mov eax, 0x88
mov dword [esi + 0x7c], 0
cmove ecx, eax
mov edx, 0x7f78
mov eax, 0x8000
cmove eax, edx
push eax
mov eax, dword [esp + 0x28]
add eax, ecx
push eax
mov eax, dword [esp + 0x28]
add eax, ecx
push eax
call fcn.1013c1a0
mov eax, dword [0x10178b38]
add esp, 0xc
test eax, eax
je 0x1003c48d
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003c48d
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp ebp, edi
jbe 0x1003c4a8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x54]
jbe 0x1003c2f0
mov dword [esi + 0x78], 0
cmp dword [0x10178a38], 0
je 0x1003c501
mov eax, dword [0x1017bbe8]
test eax, eax
je 0x1003c4cb
push eax
call dword [0x10178a88]
add esp, 4
mov ebp, dword [esp + 0x1c]
push ebp
call dword [0x10178a64]
sub dword [0x1017ba70], eax
add esp, 4
dec dword [0x1017ba94]
push ebp
call dword [0x10178a5c]
mov eax, dword [0x1017bbe8]
add esp, 4
test eax, eax
je 0x1003c50e
push eax
call dword [0x10178a90]
jmp 0x1003c50b
push dword [esp + 0x1c]
call dword [0x10178a5c]
add esp, 4
test ebx, ebx
jne 0x1003c682
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.1003bcf0
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003c56d
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003c56d
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [esi + 0x20]
mov edi, 1
mov ebp, dword [eax]
mov dword [ebp + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x64], 0
nop
cmp byte [esi + 0x2b], 0
lea edx, [edi + 3]
je 0x1003c59d
xor ebx, ebx
jmp 0x1003c5c6
mov eax, dword [esi + 4]
push 0xa
push 1
push edx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x1003c653
mov ecx, dword [esi + 0x74]
lea eax, [edi + 0xb]
bts ecx, eax
mov dword [esi + 0x74], ecx
cmp edi, 1
jne 0x1003c5d9
cmp dword [esi + 0x44], 0
je 0x1003c5d9
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x68], eax
jmp 0x1003c5e1
mov dword [ebp + edi*4 + 0x64], 0xffffffff
mov eax, dword [0x10178b38]
test eax, eax
je 0x1003c629
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003c629
mov dword [esp + 0x80], eax
lea eax, [esp + 0x78]
push eax
push 3
push 0
push 0xc0000006
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp byte [esi + 0x2b], 0
lea edx, [edi + 3]
jne 0x1003c65a
mov eax, dword [esi + 4]
push 9
push 1
push edx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [esi + 0x74]
lea eax, [edi + 0xb]
add esp, 0x10
btr ecx, eax
mov dword [esi + 0x74], ecx
jmp 0x1003c65a
mov ebx, eax
cmp eax, 5
jne 0x1003c682
inc edi
cmp edi, 5
jl 0x1003c590
cmp dword [esi + 0x48], 0
je 0x1003c682
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.1002a9f0
add esp, 0x10
mov edi, dword [esp + 0x5c]
mov ebp, 3
sub ebp, edi
cmp byte [esi + 0x2b], 0
jne 0x1003c6b9
mov eax, dword [esi + 4]
push 9
push ebp
push edi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, ebp
mov eax, 1
shl eax, cl
add esp, 0x10
dec eax
lea ecx, [edi + 8]
shl eax, cl
not eax
and dword [esi + 0x74], eax
mov eax, ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1013942d
add esp, 0x9c
ret