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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], 0
push edi
mov dword [esp + 0x3c], 0
movzx ebx, byte [esi + 0x2d]
inc ebx
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x18], ebx
jne 0x10031829
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 0x10031d18
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.10129b70
mov eax, dword [esi + 8]
lea edx, [esp + 0x4c]
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 0x10031cf7
cmp dword [esp + 0x44], eax
jl 0x10031c0f
jg 0x1003186d
cmp dword [esp + 0x40], 0x20
jbe 0x10031c0f
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 0x10031cf7
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x6c]
bswap ecx
mov eax, ecx
and eax, 0xfffffffe
bswap ebx
mov dword [esp + 0x58], ebx
cmp eax, 0x377f0682
jne 0x10031c0f
lea eax, [ebx - 1]
test ebx, eax
jne 0x10031c0f
cmp ebx, 0x10000
jg 0x10031c0f
cmp ebx, 0x200
jl 0x10031c0f
mov eax, dword [esp + 0x70]
and cl, 1
bswap eax
mov byte [esi + 0x41], cl
mov edx, edi
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x58], ecx
lea ecx, [esp + 0x64]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x54], eax
jne 0x10031920
nop dword [eax + eax]
mov eax, dword [ecx]
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x10031900
jmp 0x1003193c
mov eax, dword [ecx]
bswap eax
add eax, edi
add edx, eax
mov eax, dword [ecx + 4]
bswap eax
add eax, edx
add ecx, 8
add edi, eax
lea eax, [esp + 0x7c]
cmp ecx, eax
jb 0x10031920
mov eax, dword [esp + 0x7c]
bswap eax
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edi
cmp edx, eax
jne 0x10031c0f
mov eax, dword [esp + 0x80]
bswap eax
cmp edi, eax
jne 0x10031c0f
mov eax, dword [esp + 0x68]
bswap eax
cmp eax, 0x2de218
je 0x10031996
push 0x10155e9c
push 0xfc08
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.10021710
add esp, 0x14
mov edi, 0xe
jmp 0x10031cf3
lea edi, [ebx + 0x18]
mov dword [esp + 0x30], edi
call fcn.100ca320
test eax, eax
jne 0x10031c61
lea eax, [edi + 0x8000]
push 0
push eax
call fcn.1001e500
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10031c61
mov edi, dword [esp + 0x40]
add eax, 0x18
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
add eax, ebx
mov dword [esp + 0x34], eax
sub edi, 0x20
lea eax, [ebx + 0x18]
cdq
sbb ecx, 0
push edx
push eax
push ecx
push edi
call fcn.1013b040
xor edx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
lea ecx, [eax + 0x21]
shr ecx, 0xc
mov dword [esp + 0x60], ecx
mov ebx, edx
shl ebx, 0xc
lea ecx, [ebx + 0xfde]
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x14], ecx
test edx, edx
jne 0x10031a25
mov dword [esp + 0x10], 1
jmp 0x10031a2c
add ebx, 0xffffffdf
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x18], edx
jle 0x10031a47
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edx*4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
test eax, eax
je 0x10031a47
xor edi, edi
jmp 0x10031a68
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.100311d0
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10031ba8
mov eax, dword [esi + 0x20]
mov ebx, dword [esp + 0x34]
mov dword [eax + edx*4], ebx
mov ebx, dword [esp + 0x10]
cmp ebx, ecx
ja 0x10031b51
mov eax, dword [esp + 0x30]
cdq
mov dword [esp + 0x48], eax
mov eax, edx
mov dword [esp + 0x5c], eax
mov edi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push eax
push dword [esp + 0x4c]
mov ebx, dword [edi]
dec ecx
push 0
push ecx
call fcn.1013b2a0
add eax, 0x20
adc edx, 0
push edx
push eax
push dword [esp + 0x38]
mov eax, dword [ebx + 8]
push dword [esp + 0x2c]
push edi
call eax
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x10031b49
push dword [esp + 0x20]
lea eax, [esp + 0x58]
mov ecx, esi
push dword [esp + 0x50]
lea edx, [esp + 0x58]
push eax
call fcn.100314a0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x10031b4d
push dword [esp + 0x50]
mov edx, ebx
mov ecx, esi
call fcn.10031690
mov edi, eax
add esp, 4
test edi, edi
jne 0x10031b4d
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10031b34
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x58]
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 + 0x38], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, dword [esp + 0x14]
jbe 0x10031a95
jmp 0x10031b4d
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
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 + 0x38]
add eax, ecx
push eax
mov eax, dword [esp + 0x2c]
add eax, ecx
push eax
call fcn.1012b000
add esp, 0xc
cmp ebx, dword [esp + 0x14]
jbe 0x10031ba8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x60]
jbe 0x10031a03
cmp dword [0x10165b38], 0
je 0x10031bfa
mov eax, dword [0x10168b88]
test eax, eax
je 0x10031bc4
push eax
call dword [0x10165b88]
add esp, 4
mov ebx, dword [esp + 0x20]
push ebx
call dword [0x10165b64]
sub dword [0x10168a10], eax
add esp, 4
dec dword [0x10168a34]
push ebx
call dword [0x10165b5c]
mov eax, dword [0x10168b88]
add esp, 4
test eax, eax
je 0x10031c07
push eax
call dword [0x10165b90]
jmp 0x10031c04
push dword [esp + 0x20]
call dword [0x10165b5c]
add esp, 4
test edi, edi
jne 0x10031cf3
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x50], eax
call fcn.10031310
mov eax, dword [esi + 0x20]
mov ebx, 1
mov ecx, dword [eax]
add ecx, 0x60
mov dword [esp + 0x14], 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 edx, [ebx + 3]
mov dword [esp + 0x28], edx
je 0x10031c6b
xor edi, edi
jmp 0x10031c8c
mov edi, 7
jmp 0x10031cf3
mov ecx, dword [esi + 4]
push 0xa
push 1
push edx
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10031cc2
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
cmp ebx, 1
jne 0x10031c9f
cmp dword [esi + 0x44], 0
je 0x10031c9f
mov eax, dword [esi + 0x44]
mov dword [ecx + 8], eax
jmp 0x10031ca7
mov dword [ecx + ebx*4 + 4], 0xffffffff
cmp byte [esi + 0x2b], 0
jne 0x10031ccb
mov eax, dword [esi + 4]
push 9
push 1
push edx
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
jmp 0x10031cc7
cmp edi, 5
jne 0x10031cf3
mov ecx, dword [esp + 0x14]
inc ebx
cmp ebx, 5
jl 0x10031c50
cmp dword [esi + 0x48], 0
je 0x10031cf3
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.10021710
add esp, 0x10
mov ebx, dword [esp + 0x18]
cmp byte [esi + 0x2b], 0
jne 0x10031d16
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.10128281
mov esp, ebp
pop ebp
ret