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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x10155004]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov edx, 3
mov dword [esp + 0x28], ebp
push edi
mov dword [esp + 0x10], ebp
movzx ebx, byte [esi + 0x2d]
lea edi, [ebp + 1]
inc ebx
sub edx, ebx
mov dword [esp + 0x5c], ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x24], edx
jne 0x100383dc
mov eax, dword [esi + 4]
push 0xa
push edx
push ebx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
test eax, eax
jne 0x1003891d
mov ecx, dword [esp + 0x24]
mov eax, edi
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.10117800
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 0x100388eb
cmp dword [esp + 0x34], ebp
jl 0x1003877a
jg 0x10038420
cmp dword [esp + 0x30], 0x20
jbe 0x1003877a
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 0x100388eb
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 0x1003877a
lea eax, [edi - 1]
test edi, eax
jne 0x1003877a
cmp edi, 0x10000
jg 0x1003877a
cmp edi, 0x200
jl 0x1003877a
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.10037e40
mov eax, dword [esp + 0xa8]
add esp, 0xc
bswap eax
cmp dword [ebx], eax
jne 0x1003877a
mov eax, dword [esp + 0xa0]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x1003877a
mov eax, dword [esp + 0x88]
bswap eax
cmp eax, 0x2de218
je 0x10038530
push 0x10144edc
push 0x1009d
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.10028790
add esp, 0x14
mov ebx, 0xe
jmp 0x100388e6
lea ebx, [edi + 0x18]
lea eax, [ebx + 0x8000]
mov dword [esp + 0x40], ebx
push 0
push eax
call fcn.10025ae0
add esp, 8
mov dword [esp + 0x20], eax
mov dword [esi + 0x78], eax
test eax, eax
jne 0x1003855b
lea ebx, [eax + 7]
jmp 0x100388e6
mov ecx, dword [esp + 0x34]
add eax, 0x18
mov dword [esp + 0x44], eax
add eax, edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x28], 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.10128520
mov edx, eax
xor ecx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x18], ecx
lea eax, [edx + 0x21]
shr eax, 0xc
mov dword [esp + 0x54], eax
mov ebp, ecx
mov edi, edx
shl ebp, 0xc
lea eax, [ebp + 0xfde]
cmp edx, eax
cmovae edi, eax
mov dword [esp + 0x14], edi
test ecx, ecx
jne 0x100385c2
lea ebp, [ecx + 1]
jmp 0x100385c5
add ebp, 0xffffffdf
lea eax, [esp + 0x1c]
mov edx, ecx
push eax
mov ecx, esi
call fcn.10037cc0
mov ebx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003875b
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
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 0x100386b6
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.10128690
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x48]
mov eax, dword [ebx + 8]
push dword [esp + 0x2c]
push edi
call eax
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100386ae
push dword [esp + 0x20]
lea eax, [esp + 0x50]
mov ecx, esi
push dword [esp + 0x48]
lea edx, [esp + 0x50]
push eax
call fcn.10038060
add esp, 0xc
test eax, eax
je 0x100386ae
push dword [esp + 0x48]
mov edx, ebp
mov ecx, esi
call fcn.10038250
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100386ae
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1003869f
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 + 0x2c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x14]
inc ebp
cmp ebp, edi
jbe 0x10038603
jmp 0x100386b2
mov edi, dword [esp + 0x14]
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 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 + 0x2c]
add eax, ecx
push eax
mov eax, dword [esp + 0x24]
add eax, ecx
push eax
call fcn.10118c90
mov eax, dword [0x10155c08]
add esp, 0xc
test eax, eax
je 0x10038740
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x10038740
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 0x1003875b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x54]
jbe 0x100385a3
push dword [esp + 0x20]
mov dword [esi + 0x78], 0
call fcn.10025b30
add esp, 4
test ebx, ebx
jne 0x100388e6
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov ecx, esi
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], eax
call fcn.10037f90
mov eax, dword [0x10155c08]
test eax, eax
je 0x100387cd
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x100387cd
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 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
lea ebp, [edi + 3]
je 0x100387fe
xor ebx, ebx
jmp 0x1003882b
mov eax, dword [esi + 4]
push 0xa
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100388b3
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 8]
bts ecx, eax
mov dword [esi + 0x74], ecx
mov ecx, dword [esp + 0x10]
cmp edi, 1
jne 0x1003883c
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1003883c
mov dword [ecx + 8], eax
jmp 0x10038844
mov dword [ecx + edi*4 + 4], 0xffffffff
mov eax, dword [0x10155c08]
test eax, eax
je 0x1003888c
push 0x28a
call eax
add esp, 4
test eax, eax
je 0x1003888c
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
jne 0x100388ba
mov eax, dword [esi + 4]
push 9
push 1
push ebp
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov ecx, dword [esi + 0x74]
lea eax, [ebp + 8]
add esp, 0x10
btr ecx, eax
mov dword [esi + 0x74], ecx
jmp 0x100388ba
mov ebx, eax
cmp eax, 5
jne 0x100388e6
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, 5
jl 0x100387f1
cmp dword [esi + 0x48], 0
je 0x100388e6
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.10028790
add esp, 0x10
mov edi, 1
cmp byte [esi + 0x2b], 0
jne 0x1003891b
mov eax, dword [esi + 4]
mov ebp, dword [esp + 0x5c]
push 9
push dword [esp + 0x28]
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esp + 0x34]
add esp, 0x10
shl edi, cl
lea ecx, [ebp + 8]
dec edi
shl edi, cl
not edi
and dword [esi + 0x74], edi
mov eax, ebx
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10115f0d
add esp, 0x9c
ret