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

Disassembly:
sub esp, 0x24
mov eax, ecx
not eax
and eax, 1
mov dword [esp + 0x18], eax
push ebx
push ebp
mov eax, ecx
shr eax, 1
and eax, 1
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
xor ebp, ebp
xor ebx, ebx
cmp eax, 0x28
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x400
mov dword [esp + 0x20], edi
jle 0x4541f3
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x18], eax
jmp 0x4541fb
mov dword [esp + 0x18], 0x28
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
test cl, 4
je 0x4543b2
mov dword [esp + 0x1c], 1
mov dword [esp + 0x40], edi
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x18]
add edx, 7
and edx, 0xfffffff8
add edx, ebx
lea edx, [edx + ecx*2]
lea eax, [edi + edi*2]
lea eax, [eax + edx + 0xf7]
push eax
mov dword [esp + 0x30], eax
call fcn.0044a000
mov esi, eax
add esp, 4
test esi, esi
je 0x4544bb
mov eax, dword [esp + 0x2c]
push eax
push 0
push esi
call fcn.004f0190
mov ecx, dword [esp + 0x44]
lea eax, [esi + 0xb8]
mov dword [esi + 0xa8], eax
add eax, 0x30
mov dword [esi + 0x3c], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x44], eax
add eax, edx
mov dword [esi + 0x40], eax
add eax, edx
add esp, 0xc
mov dword [esi + 0x90], eax
test ebp, ebp
je 0x454328
push edi
lea ecx, [eax + ebx]
lea edx, [ecx + edi + 1]
push ebp
push eax
mov dword [esi + 0x94], edx
call fcn.004f1f90
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x90]
add esp, 0xc
push ebx
push eax
lea edx, [ecx + edi + 1]
push edx
call fcn.004f1f90
mov eax, dword [esi + 0x94]
add esp, 0xc
push edi
push ebp
push eax
call fcn.004f1f90
mov eax, dword [esi + 0x94]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x53d25c]
add esp, 0xc
mov dword [eax + edi + 4], edx
mov eax, dword [esi + 0x94]
push edi
lea eax, [eax + edi + 9]
push ebp
push eax
mov dword [esi + 0xb0], eax
call fcn.004f1f90
mov ecx, dword [esi + 0xb0]
mov edx, dword [str._wal]
add esp, 0xc
push ebp
mov dword [edi + ecx], edx
call sym.ShuamePacket.exe_sqlite3_free
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov dword [esi], ecx
mov dword [esi + 0x78], ebx
test eax, eax
je 0x4544d7
cmp byte [eax], 0
je 0x4544d7
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x90]
lea edi, [esp + 0x40]
push edi
and ebx, 0x87f3f
push ebx
push eax
mov eax, dword [ecx + 0x18]
push edx
push ecx
mov dword [esp + 0x54], 0
call eax
mov ebx, dword [esp + 0x54]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x45450f
test ebx, ebx
jne 0x4544ee
call fcn.00452b40
mov eax, dword [esi + 0x7c]
cmp eax, 0x400
jbe 0x4544ee
cmp eax, 0x2000
jbe 0x4544d1
mov dword [esp + 0x14], 0x2000
jmp 0x4544ee
cmp dword [esp + 0x40], edi
je 0x454216
mov ecx, dword [esp + 0x40]
cmp byte [ecx], bl
je 0x454216
mov edi, dword [esi + 8]
inc edi
lea edx, [edi + edi]
push edx
call fcn.0044a000
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4544c4
push ebp
mov byte [ebp], bl
mov ebx, dword [esp + 0x44]
mov eax, dword [esi + 0x24]
push edi
push ebx
push esi
call eax
add esp, 0x10
cmp byte [ebp], 0
mov dword [esp + 0x10], eax
mov edi, ebp
je 0x454407
inc edi
cmp byte [edi], 0
jne 0x454401
sub edi, ebp
and edi, 0x3fffffff
cmp byte [ebx], 0
mov eax, ebx
je 0x45441c
inc eax
cmp byte [eax], 0
jne 0x454416
sub eax, ebx
and eax, 0x3fffffff
cmp byte [eax + ebx + 1], 0
lea edx, [eax + ebx + 1]
mov dword [esp + 0x20], edx
mov ecx, edx
je 0x454478
cmp byte [ecx], 0
mov eax, ecx
je 0x454446
jmp 0x454440
inc eax
cmp byte [eax], 0
jne 0x454440
sub eax, ecx
and eax, 0x3fffffff
lea ecx, [ecx + eax + 1]
mov eax, ecx
test ecx, ecx
je 0x45446d
cmp byte [ecx], 0
je 0x454466
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x454460
sub eax, ecx
and eax, 0x3fffffff
cmp byte [ecx + eax + 1], 0
lea ecx, [ecx + eax + 1]
jne 0x454434
sub ecx, edx
inc ecx
cmp dword [esp + 0x10], 0
mov ebx, ecx
jne 0x4544a6
lea ecx, [edi + 8]
cmp ecx, dword [esi + 8]
jle 0x454216
mov eax, 0xa0bb
call fcn.004a3e30
mov dword [esp + 0x10], eax
test eax, eax
je 0x454216
push ebp
call sym.ShuamePacket.exe_sqlite3_free
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push ebp
call sym.ShuamePacket.exe_sqlite3_free
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x14], eax
jmp 0x4544ee
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], 1
mov byte [esi + 0xf], 1
mov byte [esi + 0x10], 4
and ebx, 1
test edi, edi
jne 0x45450f
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
push ebp
push ecx
mov edi, esi
call fcn.00453930
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x45453a
mov edi, eax
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x454527
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call sym.ShuamePacket.exe_sqlite3_free
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [esi + 0xa8]
push 0x30
push 0
push edi
call fcn.004f0190
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
xor edx, edx
mov dword [edi + 0x14], eax
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x4540b0
cmp dword [esp + 0x30], 0
mov dword [edi + 0x1c], edx
mov dl, byte [esp + 0x28]
mov dword [edi + 0x18], 0x50
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov byte [esi + 6], dl
je 0x45459c
test ebx, ebx
je 0x45459c
mov eax, 1
jmp 0x45459e
xor eax, eax
mov byte [esi + 7], al
mov al, byte [esp + 0x24]
test al, al
mov byte [esi + 0xe], cl
sete cl
test al, al
mov byte [esi + 0xc], al
mov byte [esi + 4], al
mov byte [esi + 0x11], al
mov byte [esi + 8], al
setne al
dec al
and al, 2
mov edx, 0x50
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xd], bl
mov byte [esi + 9], cl
mov byte [esi + 0xb], al
mov byte [esi + 0xa], al
mov word [esi + 0x74], dx
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], ebp
call fcn.00452b40
cmp dword [esp + 0x28], 0
jne 0x4545ff
mov byte [esi + 5], 2
jmp 0x45460a
cmp dword [esp + 0x1c], 0
je 0x45460a
mov byte [esi + 5], 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0xa0], 0x459a80
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret