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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x577094]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x38], 0
push edi
mov edx, 3
mov dword [esp + 0x40], 0
movzx edi, byte [esi + 0x2d]
lea ebx, [esi + 4]
inc edi
mov dword [esp + 0x24], ebx
sub edx, edi
mov dword [esp + 0x44], edi
cmp byte [esi + 0x2b], 0
mov dword [esp + 0x14], edx
jne 0x42fcf9
mov ecx, dword [ebx]
push 0xa
push edx
push edi
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4300ae
cmp byte [esi + 0x2b], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
jne 0x42fcf9
mov eax, dword [ebx]
push 0xa
push 4
push 4
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x38]
call eax
mov edi, eax
add esp, 0x10
test edi, edi
je 0x42fcf9
cmp byte [esi + 0x2b], 0
jne 0x4300ae
push 9
push dword [esp + 0x18]
push dword [esp + 0x4c]
jmp 0x4300a1
push 0x30
lea eax, [esi + 0x34]
push 0
push eax
call fcn.004f13c0
mov eax, dword [esi + 8]
lea edx, [esp + 0x34]
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 0x430074
cmp dword [esp + 0x2c], eax
jl 0x42ffec
jg 0x42fd3d
cmp dword [esp + 0x28], 0x20
jbe 0x42ffec
mov eax, dword [esi + 8]
lea edx, [esp + 0x54]
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
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x430070
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x5c]
bswap edx
mov eax, edx
and eax, 0xfffffffe
bswap edi
mov dword [esp + 0x50], edi
cmp eax, 0x377f0682
jne 0x42ffe8
lea eax, [edi - 1]
test edi, eax
jne 0x42ffe8
cmp edi, 0x10000
jg 0x42ffe8
cmp edi, 0x200
jl 0x42ffe8
mov eax, dword [esp + 0x60]
and dl, 1
mov ecx, dword [esp + 0x68]
bswap eax
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x54], eax
lea eax, [esi + 0x4c]
push eax
mov dword [esi + 0x58], ecx
movzx ecx, dl
mov byte [esi + 0x41], dl
xor ecx, 1
push ebx
push 0x18
lea edx, [esp + 0x60]
mov dword [esi + 0x24], edi
call fcn.0042f680
mov eax, dword [esp + 0x78]
add esp, 0xc
bswap eax
cmp dword [esi + 0x4c], eax
jne 0x42ffe8
mov eax, dword [esp + 0x70]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x42ffe8
mov eax, dword [esp + 0x58]
bswap eax
cmp eax, 0x2de218
je 0x42fe31
push 0x56b2d4
push 0xe965
push str.cannot_open_file
push str._s_at_line__d_of___.10s_
push 0xe
call fcn.0041f8b0
add esp, 0x14
lea edi, [ebx + 0xe]
jmp 0x430074
add edi, 0x18
mov dword [esp + 0x48], edi
call fcn.004be100
test eax, eax
jne 0x430069
mov eax, edi
cdq
mov ecx, edx
mov dword [esp + 0x34], eax
push ecx
push eax
mov dword [esp + 0x28], ecx
call fcn.0041c400
mov edi, eax
add esp, 8
test edi, edi
je 0x430069
mov ecx, dword [esp + 0x34]
xor edx, edx
mov eax, dword [esp + 0x20]
add ecx, 0x20
mov dword [esp + 0x1c], 0x20
adc eax, edx
mov dword [esp + 0x38], edx
cmp eax, dword [esp + 0x2c]
jg 0x42ffc8
jl 0x42fe97
cmp ecx, dword [esp + 0x28]
ja 0x42ffc8
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 8]
inc edx
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x20], edx
push dword [esp + 0x50]
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 8]
call eax
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x42ffc8
mov eax, dword [esi + 0x54]
cmp eax, dword [edi + 8]
jne 0x42ffdf
mov eax, dword [esi + 0x58]
cmp eax, dword [edi + 0xc]
jne 0x42ffdf
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x42ffdf
cmp byte [esi + 0x41], bl
lea eax, [esi + 0x4c]
push eax
sete bl
mov edx, edi
push eax
push 8
mov ecx, ebx
call fcn.0042f680
add esp, 0xc
lea eax, [esi + 0x4c]
lea edx, [edi + 0x18]
mov ecx, ebx
push eax
push eax
push dword [esi + 0x24]
call fcn.0042f680
mov eax, dword [edi + 0x10]
add esp, 0xc
bswap eax
cmp dword [esi + 0x4c], eax
jne 0x42ffdf
mov eax, dword [edi + 0x14]
bswap eax
cmp dword [esi + 0x50], eax
jne 0x42ffdf
mov ebx, dword [edi + 4]
mov ecx, esi
push dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
bswap ebx
call fcn.0042fb30
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x42ffc4
mov edx, dword [esp + 0x18]
test ebx, ebx
je 0x42ff8c
mov eax, dword [esp + 0x50]
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ebx
mov word [esi + 0x42], cx
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
add eax, ecx
mov ebx, dword [esp + 0x38]
adc ebx, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
adc eax, ebx
mov dword [esp + 0x38], ebx
cmp eax, dword [esp + 0x2c]
jg 0x42ffc4
jl 0x42fea0
cmp ecx, dword [esp + 0x28]
jbe 0x42fea0
mov ebx, dword [esp + 0x10]
push edi
call fcn.0041c630
add esp, 4
mov edi, dword [esp + 0x10]
test ebx, ebx
jne 0x430074
jmp 0x42ffec
push edi
call fcn.0041c630
add esp, 4
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x50], eax
call fcn.0042f750
mov eax, dword [esi + 0x20]
mov ecx, 4
mov edx, dword [eax]
mov dword [edx + 0x60], 0
mov eax, dword [esi + 0x44]
mov dword [edx + 0x80], eax
lea eax, [edx + 0x68]
mov dword [edx + 0x64], 0
nop word [eax + eax]
mov dword [eax], 0xffffffff
lea eax, [eax + 4]
sub ecx, 1
jne 0x430030
cmp dword [esi + 0x44], ecx
je 0x430049
mov eax, dword [esi + 0x44]
mov dword [edx + 0x68], eax
cmp dword [esi + 0x48], 0
je 0x430074
push dword [esi + 0x6c]
push dword [esi + 0x44]
push str.recovered__d_frames_from_WAL_file__s
push 0x11b
call fcn.0041f8b0
add esp, 0x10
jmp 0x430074
mov edi, 7
jmp 0x430074
mov edi, dword [esp + 0x10]
cmp byte [esi + 0x2b], 0
mov ebx, dword [esp + 0x24]
jne 0x4300ae
mov eax, dword [ebx]
push 9
push dword [esp + 0x18]
mov ecx, dword [eax]
push dword [esp + 0x4c]
push eax
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
cmp byte [esi + 0x2b], 0
jne 0x4300ae
push 9
push 4
push 4
mov eax, dword [ebx]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x38]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x74]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004eedbd
mov esp, ebp
pop ebp
ret