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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x704034]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
cmp edx, 1
push esi
push edi
mov dword [esp + 0x14], eax
mov edi, ecx
mov dword [esp + 0x3c], eax
mov ecx, 0x709480
mov eax, dword [ebp + 0xc]
mov esi, 0x709460
mov dword [esp + 0x48], eax
cmove ecx, esi
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x1c], edx
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x24], edi
push 5
push eax
mov dword [esp + 0x3c], 0
mov byte [edi + 0xa5], 1
mov dword [esp + 0x84], str.table
mov dword [esp + 0x38], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], 0x70947c
mov dword [esp + 0x94], str.CREATE_TABLE_x_type_text_name_text_tbl_name_text_rootpage_int_sql_text_
mov dword [esp + 0x98], 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
call fcn.004d48f0
mov esi, dword [esp + 0x54]
add esp, 0x10
test esi, esi
jne 0x4d4df5
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0x10]
shl eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], esi
mov ecx, dword [esi + eax + 4]
test ecx, ecx
jne 0x4d4bd8
mov eax, dword [esi + 0x1c]
or word [eax + 0x4e], 1
xor eax, eax
jmp 0x4d4e49
cmp byte [ecx + 9], 0
je 0x4d4bf0
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x4d4bf0
call fcn.0048b670
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + eax + 4]
cmp byte [ecx + 8], 0
jne 0x4d4c33
push 0
xor edx, edx
call fcn.0048e7c0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d4c27
mov ecx, esi
call fcn.00500a40
mov ecx, dword [esp + 0x14]
mov edx, edi
push eax
call fcn.00478430
add esp, 4
jmp 0x4d4dd4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], 1
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov dword [esp + 0x20], ecx
nop dword [eax]
mov esi, dword [edi + eax + 4]
lea edx, [esp + 0x50]
lea edx, [edx + ecx*4]
mov dword [esp + 0x30], edx
cmp byte [esi + 9], 0
mov eax, dword [esi + 4]
mov dword [esp + 0x34], eax
je 0x4d4c78
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4d4c78
mov ecx, esi
call fcn.0048b670
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
cmp ecx, 0xe
jne 0x4d4c8d
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
add ecx, dword [eax + 0x64]
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
jmp 0x4d4c9b
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + ecx*4 + 0x28]
bswap eax
mov dword [edx], eax
cmp byte [esi + 9], 0
je 0x4d4cb2
add dword [esi + 0xc], 0xffffffff
jne 0x4d4cb2
mov ecx, esi
call fcn.0048b630
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 5
jl 0x4d4c40
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x20]
and eax, 0x2000000
or eax, 0
je 0x4d4ce1
xorps xmm0, xmm0
xor edx, edx
movaps xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], edx
jmp 0x4d4ce5
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + ecx + 0xc]
mov dword [ecx], eax
test edx, edx
je 0x4d4e64
cmp dword [esp + 0x18], 0
jne 0x4d4d54
and dl, 3
mov ecx, 1
movzx eax, dl
cmove eax, ecx
mov byte [edi + 0x4e], al
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + edx + 0xc]
mov al, byte [edi + 0x4e]
mov byte [ecx + 0x4d], al
mov ecx, dword [esi + edx + 0xc]
cmp dword [ecx + 0x50], 0
jne 0x4d4ea5
mov eax, dword [esp + 0x58]
test eax, eax
jns 0x4d4e7b
cmp eax, 0x80000000
jne 0x4d4e79
mov eax, closesocket
jmp 0x4d4e8a
movzx eax, byte [edi + 0x4e]
cmp edx, eax
je 0x4d4d17
push str.attached_databases_must_use_the_same_text_encoding_as_main_database
mov ecx, dword [esp + 0x18]
mov edx, edi
call fcn.00478430
add esp, 4
mov esi, 1
mov ecx, dword [esp + 0x10]
cmp dword [esp + 0x2c], 0
je 0x4d4dd4
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ecx + 4]
mov dword [esp + 0x14], eax
cmp byte [eax + 9], 0
je 0x4d4da5
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x4d4da5
mov ecx, eax
call fcn.0048b670
mov eax, dword [esp + 0x14]
xor edx, edx
mov ecx, eax
call fcn.0048f440
test eax, eax
jne 0x4d4dbd
mov ecx, dword [esp + 0x14]
xor edx, edx
call fcn.0048f590
mov eax, dword [esp + 0x14]
cmp byte [eax + 9], 0
je 0x4d4dd4
add dword [eax + 0xc], 0xffffffff
jne 0x4d4dd4
mov ecx, eax
call fcn.0048b630
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov ecx, dword [eax + ecx + 4]
cmp byte [ecx + 9], 0
je 0x4d4df1
add dword [ecx + 0xc], 0xffffffff
jne 0x4d4df1
call fcn.0048b630
test esi, esi
je 0x4d4e47
cmp esi, 7
je 0x4d4e02
cmp esi, 0xc0a
jne 0x4d4e3c
cmp byte [edi + 0x51], 0
jne 0x4d4e3c
cmp byte [edi + 0x52], 0
jne 0x4d4e3c
cmp dword [edi + 0xbc], 0
mov byte [edi + 0x51], 1
jle 0x4d4e25
mov dword [edi + 0x110], 1
inc dword [edi + 0x118]
mov eax, dword [edi + 0xf4]
test eax, eax
je 0x4d4e3c
mov dword [eax + 0xc], 7
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.004bd980
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov byte [edi + 0xa5], 0
pop edi
pop esi
xor ecx, esp
call fcn.00620676
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x10]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + eax + 0xc]
or word [eax + 0x4e], 4
jmp 0x4d4d1b
neg eax
test eax, eax
mov dword [esp + 0x1c], 0xfffff830
cmove eax, dword [esp + 0x1c]
mov dword [ecx + 0x50], eax
mov edx, dword [esi + edx + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + 0x50]
mov ecx, dword [esi + ecx + 4]
call fcn.0048e030
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edx + 0xc]
mov ecx, dword [esp + 0x54]
mov byte [eax + 0x4c], cl
mov eax, dword [esi + edx + 0xc]
cmp byte [eax + 0x4c], 0
jne 0x4d4ebe
mov byte [eax + 0x4c], 1
mov eax, dword [esi + edx + 0xc]
cmp byte [eax + 0x4c], 4
jbe 0x4d4ed2
push str.unsupported_file_format
jmp 0x4d4d61
cmp dword [esp + 0x18], 0
jne 0x4d4ee8
cmp ecx, 4
jl 0x4d4ee8
mov eax, dword [edi + 0x24]
and dword [edi + 0x20], 0xfffffffd
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
push dword [esp + 0x28]
push dword [edx + eax]
push str.SELECTFROM__w_._s_ORDER_BY_rowid
push edi
call fcn.0047a2b0
mov esi, dword [edi + 0x140]
lea ecx, [esp + 0x48]
push 0
push ecx
push fcn.004d48f0
push eax
push edi
mov dword [esp + 0x40], eax
mov dword [edi + 0x140], 0
call fcn.004d0110
mov ecx, dword [esp + 0x40]
add esp, 0x24
mov dword [edi + 0x140], esi
mov esi, eax
test esi, esi
mov dword [esp + 0x28], eax
cmove esi, dword [esp + 0x44]
test ecx, ecx
je 0x4d4f7f
cmp dword [edi + 0x1e8], 0
je 0x4d4f56
mov edx, ecx
mov ecx, edi
call fcn.00477ca0
jmp 0x4d4f7f
cmp ecx, dword [edi + 0x138]
jb 0x4d4f76
cmp ecx, dword [edi + 0x13c]
jae 0x4d4f76
mov eax, dword [edi + 0x134]
mov dword [ecx], eax
mov dword [edi + 0x134], ecx
jmp 0x4d4f7f
push ecx
call fcn.00477c30
add esp, 4
test esi, esi
jne 0x4d4f8e
mov edx, dword [esp + 0x18]
mov ecx, edi
call fcn.004bb9f0
cmp byte [edi + 0x51], 0
je 0x4d4fa2
mov ecx, edi
mov esi, 7
call fcn.004bdc80
jmp 0x4d4fa6
test esi, esi
je 0x4d4fb7
mov eax, dword [edi + 0x20]
and eax, 0x8000000
or eax, 0
je 0x4d4d74
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax + 0xc]
or word [eax + 0x4e], 1
xor esi, esi
jmp 0x4d4d78