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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d6fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp + 0x18]
mov ebx, ecx
push esi
not ebx
mov dword [ebp - 0x18], eax
mov eax, dword [eax + 4]
and ebx, 1
push edi
xor edi, edi
mov dword [ebp - 0x20], edx
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x400
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], esi
cmp eax, 0x28
jle 0x466ad4
add eax, 7
and eax, 0xfffffff8
mov dword [ebp - 0x24], eax
jmp 0x466adb
mov dword [ebp - 0x24], 0x28
mov eax, dword [ebp - 0x34]
mov dword [eax], esi
test cl, 2
je 0x466cfb
mov ebx, 1
test edx, edx
je 0x466b57
cmp byte [edx], 0
je 0x466b57
mov eax, edx
nop dword [eax]
inc eax
cmp byte [eax], 0
jne 0x466b00
sub eax, edx
and eax, 0x3fffffff
inc eax
push eax
mov dword [ebp - 0x38], eax
call fcn.00465240
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], edi
test edi, edi
je 0x466f58
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
push ecx
push edi
call fcn.004986f0
mov eax, edi
add esp, 0xc
cmp byte [eax], 0
je 0x466b4c
mov ecx, edi
mov dword [ebp - 0x10], ecx
inc edi
cmp byte [edi], 0
jne 0x466b46
sub edi, eax
mov dword [ebp - 0x20], esi
and edi, 0x3fffffff
mov eax, dword [ebp - 0x18]
lea ecx, [edi*2 + 0x101]
mov edx, dword [ebp - 0x24]
add ecx, edi
mov eax, dword [eax + 4]
add eax, 7
and eax, 0xfffffff8
add eax, esi
lea eax, [eax + edx*2]
add eax, ecx
push eax
mov dword [ebp - 0x2c], eax
call fcn.00465240
mov esi, eax
add esp, 4
test esi, esi
je 0x466f4d
push dword [ebp - 0x2c]
push 0
push esi
call fcn.00498c70
mov eax, dword [ebp - 0x18]
lea ecx, [esi + 0xc0]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov dword [esi + 0xb4], ecx
add ecx, 0x30
mov dword [esi + 0x3c], ecx
mov eax, dword [eax + 4]
add eax, 7
and eax, 0xfffffff8
add ecx, eax
mov dword [esi + 0x44], ecx
add ecx, dword [ebp - 0x24]
mov dword [esi + 0x40], ecx
add ecx, dword [ebp - 0x24]
mov dword [esi + 0x90], ecx
test edx, edx
je 0x466c79
mov eax, dword [ebp - 0x1c]
inc eax
push edi
add eax, ecx
push edx
add eax, edi
push ecx
mov dword [esi + 0x94], eax
call fcn.004986f0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x466c0d
push eax
mov eax, dword [esi + 0x90]
push dword [ebp - 8]
inc eax
add eax, edi
push eax
call fcn.004986f0
add esp, 0xc
push edi
push dword [ebp - 0x10]
push dword [esi + 0x94]
call fcn.004986f0
mov ecx, dword [esi + 0x94]
movq xmm0, qword [str._journal]
push edi
push dword [ebp - 0x10]
movq qword [ecx + edi], xmm0
movzx eax, byte [0x4c0430]
mov byte [ecx + edi + 8], al
mov eax, dword [esi + 0x94]
add eax, 9
add eax, edi
push eax
mov dword [esi + 0xbc], eax
call fcn.004986f0
mov ecx, dword [esi + 0xbc]
mov eax, dword [str._wal]
push dword [ebp - 0x10]
mov dword [ecx + edi], eax
movzx eax, byte [0x4c0438]
mov byte [ecx + edi + 4], al
call fcn.00422010
add esp, 0x1c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [esi], edx
mov dword [esi + 0x78], eax
test ecx, ecx
je 0x466e11
cmp byte [ecx], 0
je 0x466e11
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
and eax, 0x87f7f
push eax
push dword [esi + 0x3c]
mov eax, dword [edx + 0x18]
push dword [esi + 0x90]
push edx
call eax
mov ecx, eax
add esp, 0x14
mov eax, dword [ebp - 8]
and eax, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jne 0x466cf1
test eax, eax
jne 0x466cf1
push esi
call fcn.0044c860
mov eax, dword [esi + 0x7c]
add esp, 4
cmp eax, 0x400
jbe 0x466cf1
mov ecx, 0x2000
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x28], eax
xor al, al
mov byte [ebp - 9], al
jmp 0x466e21
xor ebx, ebx
test edx, edx
je 0x466b57
cmp byte [edx], bl
je 0x466b57
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 8]
inc esi
lea eax, [esi + esi]
push eax
call fcn.00465240
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
je 0x466f58
mov eax, dword [ebp - 0x18]
push edi
push esi
mov esi, dword [ebp - 0x20]
push esi
mov byte [edi], bl
push eax
mov eax, dword [eax + 0x24]
call eax
mov dword [ebp - 0x14], eax
add esp, 0x10
mov eax, edi
cmp byte [eax], bl
je 0x466d56
nop word [eax + eax]
inc edi
cmp byte [edi], 0
jne 0x466d50
sub edi, eax
mov eax, esi
and edi, 0x3fffffff
cmp byte [esi], 0
je 0x466d6b
inc eax
cmp byte [eax], 0
jne 0x466d65
sub eax, esi
inc esi
and eax, 0x3fffffff
add eax, esi
mov dword [ebp - 8], eax
mov esi, eax
cmp byte [eax], 0
je 0x466dbf
nop
mov eax, esi
inc eax
mov ecx, ebx
cmp byte [eax], 0
jne 0x466d82
sub eax, esi
and eax, 0x3fffffff
lea edx, [eax + 1]
add edx, esi
mov eax, edx
jne 0x466d9e
xor eax, eax
jmp 0x466db2
cmp byte [edx], 0
je 0x466dab
mov ebx, ecx
inc eax
cmp byte [eax], 0
jne 0x466da5
sub eax, edx
and eax, 0x3fffffff
lea esi, [eax + 1]
add esi, edx
cmp byte [esi], 0
jne 0x466d80
mov eax, dword [ebp - 8]
sub esi, eax
inc esi
cmp dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], esi
jne 0x466df2
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 8]
cmp eax, dword [ecx + 8]
jle 0x466b57
push 0xac64
call fcn.00453a80
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x466b57
push dword [ebp - 0x10]
call fcn.00422010
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496cac
mov esp, ebp
pop ebp
ret
and eax, 1
mov word [esi + 0xf], 0x401
mov dword [ebp - 0x1c], eax
mov byte [ebp - 9], 1
cmp dword [ebp - 0x14], 0
jne 0x466f18
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004673a0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x466f18
mov ecx, dword [esi + 0xb4]
mov edi, 0x444d20
mov edx, dword [ebp + 0x14]
add edx, 7
and edx, 0xfffffff8
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x14], eax
mov eax, ebx
xor eax, 1
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
xor eax, eax
mov dword [ecx + 0x24], esi
test ebx, ebx
mov dword [ecx + 0x10], 0x64
cmove eax, edi
mov dword [ecx + 0x20], eax
mov cl, byte [ebp - 9]
mov eax, dword [ebp - 0x30]
mov byte [esi + 6], al
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xc], cl
mov byte [esi + 4], cl
mov byte [esi + 0x11], cl
mov byte [esi + 0xe], bl
mov byte [esi + 0xd], al
mov byte [esi + 7], cl
test cl, cl
jne 0x466ec2
mov dword [esi + 8], 0x2220201
push esi
mov word [esi + 0x74], dx
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x8c], 0xffffffff
call fcn.0044c860
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x466eef
mov byte [esi + 5], 2
jmp 0x466ef7
test ebx, ebx
je 0x466ef7
mov byte [esi + 5], 4
mov eax, dword [ebp + 0x20]
mov dword [esi + 0xac], eax
mov eax, dword [ebp - 0x34]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496cac
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x3c]
mov eax, dword [edi]
test eax, eax
je 0x466f30
mov eax, dword [eax + 4]
push edi
call eax
add esp, 4
mov dword [edi], 0
push esi
call fcn.00422010
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496cac
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call fcn.00422010
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 7
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496cac
mov esp, ebp
pop ebp
ret