Function at 0x492040
Capabilities:
Query environment variable
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x8307c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1dc], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1b0], ebx
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1cc], 0
mov byte [ebp - 0x1a9], al
cmp dword [esi], eax
je 0x4920cb
push dword [0x7d0370]
push 0x80a
push esi
call fcn.00494b70
add esp, 0xc
jmp 0x4926ab
push 0x184
lea eax, [ebp - 0x1a8]
push eax
push esi
call fcn.00494a50
add esp, 0xc
test eax, eax
jne 0x4926ab
mov dword [esi + 0x3b8], 0x7d0380
mov dword [esi], eax
mov ecx, dword [esi + 0x330]
mov dword [esi + 0x2e4], eax
test ecx, ecx
jne 0x49210c
cmp dword [esi + 0x334], ecx
je 0x492156
push dword [esi + 0x334]
test ecx, ecx
mov eax, 0x4fc174
cmovne eax, ecx
push eax
lea eax, [esi + 0x300]
push eax
call fcn.00491880
push dword [esi + 0x330]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push dword [esi + 0x334]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x14
mov dword [esi + 0x334], 0
mov dword [esi + 0x330], 0
test edi, edi
je 0x49215f
cmp byte [edi], 0
jne 0x492171
mov edi, dword [esi + 0x318]
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b8], edi
mov ecx, dword [ebp - 0x1e0]
test ecx, ecx
je 0x492180
cmp byte [ecx], 0
jne 0x492196
mov eax, dword [esi + 0x31c]
mov ecx, 0x4fbd0e
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x1e0], ecx
cmp dword [ebp - 0x1d8], 0
jne 0x4921cd
mov eax, dword [esi + 0x320]
mov dword [ebp - 0x1d8], eax
test eax, eax
jne 0x4921cd
push str.MYSQL_PWD
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov ecx, 0x4fbd0e
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x1d8], ecx
mov eax, dword [ebp - 0x1dc]
test eax, eax
je 0x4921dc
cmp byte [eax], 0
jne 0x4921e8
mov eax, dword [esi + 0x328]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp + 0x1c], 0
jne 0x4921f7
mov eax, dword [esi + 0x30c]
mov dword [ebp + 0x1c], eax
test ebx, ebx
jne 0x49220d
mov eax, dword [esi + 0x324]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], eax
mov eax, dword [esi + 0x3c8]
mov dword [esi + 0x2f4], 2
test eax, eax
jne 0x492234
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x492261
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492256
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
mov eax, dword [eax]
mov dword [eax + 8], 0
jmp 0x492273
cmp dword [0x834328], 0
je 0x492273
push esi
call fcn.004981d0
add esp, 4
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492290
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x4922f8
sub esp, 0x18
mov dword [ebp - 0x1fc], 0
mov eax, esp
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
movups xmm0, xmmword [ebp - 0x1fc]
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
movups xmmword [eax], xmm0
push 1
movq xmm0, qword [ebp - 0x1ec]
push esi
movq qword [eax + 0x10], xmm0
call fcn.00498240
add esp, 0x20
mov eax, dword [esi + 0x310]
test eax, eax
je 0x49230b
cmp eax, 4
jne 0x4923d2
test edi, edi
je 0x492343
mov ecx, str.localhost
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x492336
test dl, dl
je 0x492332
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x492336
add eax, 2
add ecx, 2
test dl, dl
jne 0x492316
xor eax, eax
jmp 0x49233b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4923d2
mov eax, dword [esi + 0x300]
test eax, eax
je 0x49235c
cmp eax, 0x20c49b
ja 0x49235c
imul eax, eax, 0x3e8
jmp 0x49235f
or eax, 0xffffffff
push eax
push esi
push esi
call fcn.0048f550
add esp, 0xc
cmp eax, 0xffffffff
jne 0x492387
cmp dword [esi + 0x310], 4
je 0x492679
push esi
call fcn.00493810
add esp, 4
jmp 0x4923d2
mov edi, dword [esi + 0x354]
xor eax, eax
push edi
mov dword [esi + 0x310], 4
push dword [0x7d12bc]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x1a8]
push 0x183
push eax
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1cc], eax
call fcn.0049e710
add esp, 0x10
mov eax, dword [esi]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x4928e1
cmp dword [esi + 0x310], 3
je 0x49244b
test edi, edi
je 0x49241f
mov ecx, 0x4fbd1c
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x492416
test dl, dl
je 0x492412
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x492416
add eax, 2
add ecx, 2
test dl, dl
jne 0x4923f6
xor eax, eax
jmp 0x49241b
sbb eax, eax
or eax, 1
test eax, eax
je 0x49244b
cmp byte [0x8367d0], 0
jne 0x492568
mov eax, dword [ebp - 0x1b0]
test eax, eax
jne 0x49244b
test edi, edi
jne 0x492568
call fcn.0048fd10
test al, al
je 0x492568
mov eax, dword [esi + 0x300]
test eax, eax
je 0x492464
cmp eax, 0x20c49b
ja 0x492464
imul eax, eax, 0x3e8
jmp 0x492467
or eax, 0xffffffff
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
push eax
push esi
call fcn.0048f330
add esp, 0x10
cmp eax, 0xffffffff
jne 0x492521
cmp dword [esi + 0x310], 3
je 0x492679
mov edi, dword [ebp - 0x1b8]
mov dword [ebp - 0x1bc], edi
test edi, edi
je 0x4924dd
mov ecx, 0x4fbd1c
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4924d0
test dl, dl
je 0x4924cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4924d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4924b0
xor eax, eax
jmp 0x4924d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x492679
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x492568
mov ecx, str.MySQL
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x492512
test dl, dl
je 0x49250e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x492512
add eax, 2
add ecx, 2
test dl, dl
jne 0x4924f2
xor eax, eax
jmp 0x492517
sbb eax, eax
or eax, 1
test eax, eax
je 0x492679
jmp 0x492568
push eax
call fcn.0049f740
mov dword [esi], eax
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1b4]
push eax
push dword [0x7d1264]
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1a8]
push 0x183
push eax
call fcn.0049e710
mov edi, dword [ebp - 0x1b8]
add esp, 0x14
mov dword [ebp - 0x1bc], edi
mov eax, dword [esi]
test eax, eax
jne 0x4928e1
mov eax, dword [esi + 0x310]
test eax, eax
je 0x492585
cmp eax, 1
jne 0x4928c2
xor eax, eax
mov dword [ebp - 0x1b8], 0
mov dword [ebp - 0x1b0], eax
or ebx, 0xffffffff
mov eax, dword [ebp + 0x1c]
test eax, eax
mov dword [ebp - 0x1c4], 0
cmove eax, dword [0x834310]
test edi, edi
mov dword [ebp + 0x1c], eax
mov eax, str.localhost
cmovne eax, edi
mov dword [ebp - 0x1d0], 0xffffffff
mov edi, eax
lea eax, [ebp - 0x1a8]
push edi
push dword [0x7d1254]
mov dword [ebp - 0x1bc], edi
push 0x183
push eax
mov dword [ebp - 0x1cc], eax
call fcn.0049e710
push dword [ebp + 0x1c]
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push 0x4fc18c
movups xmmword [ebp - 0x204], xmm0
push 0x20
push eax
movups xmmword [ebp - 0x1f4], xmm0
mov dword [ebp - 0x1fc], 1
mov dword [ebp - 0x1f8], 6
mov dword [ebp - 0x200], 0
call fcn.0049e710
add esp, 0x20
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.WS2_32.dll_getaddrinfo]
call edi
test eax, eax
je 0x4926c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
push dword [ebp - 0x1bc]
push dword [0x7d123c]
push dword [0x7d0370]
push 0x7d5
push esi
call fcn.00494c70
add esp, 0x18
xor edi, edi
push esi
call fcn.0048f9d0
push esi
call fcn.00490050
add esp, 8
cmp dword [ebp + 0x24], 0
jl 0x492699
push esi
call fcn.00490100
add esp, 4
cmp byte [ebp - 0x1a9], 0
je 0x4926ab
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e7e02
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esi + 0x368]
test eax, eax
je 0x492713
lea ecx, [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push 0
push eax
call edi
test eax, eax
je 0x492713
push eax
push dword [esi + 0x368]
push dword [0x7d123c]
push dword [0x7d0370]
push 0x7d5
push esi
call fcn.00494c70
add esp, 0x18
push dword [ebp - 0x1b4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x492679
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1c8], eax
test eax, eax
je 0x492841
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x492818
mov edi, dword [ebp - 0x1b8]
test edi, edi
je 0x492780
nop dword [eax + eax]
push dword [edi + 0x10]
push dword [edi + 0x18]
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x492780
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x492750
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
mov dword [ebp - 0x1c4], eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x492824
mov eax, dword [esi]
push 2
test eax, eax
jne 0x4927d8
push 1
push ebx
call fcn.0049f6f0
add esp, 0xc
mov dword [esi], eax
test eax, eax
jne 0x4927ee
push dword [0x7d0370]
push 0x7d8
push esi
call fcn.00494b70
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x1b4]
mov edi, dword [sym.imp.WS2_32.dll_freeaddrinfo]
call edi
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x492679
push eax
call edi
jmp 0x492679
push 0
push ebx
push 1
push eax
call fcn.0049f860
add esp, 0x14
test al, al
jne 0x492881
push esi
call fcn.0048fce0
push eax
mov eax, dword [ebp - 0x1c8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [esi]
call fcn.004a01c0
movsx eax, al
add esp, 0x14
mov dword [ebp - 0x1d0], eax
test eax, eax
je 0x49283b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp - 0x1c8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c8], eax
test eax, eax
jne 0x492727
mov eax, dword [ebp - 0x1b4]
mov edi, dword [sym.imp.WS2_32.dll_freeaddrinfo]
push eax
call edi
mov eax, dword [ebp - 0x1b8]
test eax, eax
je 0x492857
push eax
call edi
cmp ebx, 0xffffffff
jne 0x492891
push dword [ebp - 0x1c4]
push dword [0x7d1238]
push dword [0x7d0370]
push 0x7d4
push esi
call fcn.00494c70
add esp, 0x14
jmp 0x492679
push dword [0x7d0370]
push 0x7d0
jmp 0x4927a4
cmp dword [ebp - 0x1d0], 0
je 0x4928bc
push dword [ebp - 0x1c4]
push dword [ebp - 0x1bc]
push dword [0x7d1234]
push dword [0x7d0370]
push 0x7d3
jmp 0x492670
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esi]
test eax, eax
jne 0x4928e1
push dword [0x7d0370]
push 0x7ff
push esi
call fcn.00494b70
add esp, 0xc
jmp 0x492679
push eax
push esi
call fcn.00498b30
add esp, 8
test al, al
mov eax, dword [esi]
je 0x492919
push eax
mov eax, dword [eax + 0x14c]
call eax
mov dword [esi], 0
push dword [0x7d0370]
push 0x7d8
push esi
call fcn.00494b70
add esp, 0x10
jmp 0x492679
push 1
push eax
mov eax, dword [eax + 0x160]
call eax
mov eax, dword [esi + 0x304]
add esp, 8
test eax, eax
je 0x49293b
push eax
push esi
call fcn.00498de0
add esp, 8
mov eax, dword [esi + 0x308]
test eax, eax
je 0x49294f
push eax
push esi
call fcn.00498e00
add esp, 8
mov eax, dword [esi + 0x358]
test eax, eax
je 0x49295c
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492979
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x4929e1
sub esp, 0x18
mov dword [ebp - 0x1fc], 0
mov eax, esp
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
movups xmm0, xmmword [ebp - 0x1fc]
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0
movups xmmword [eax], xmm0
push 2
movq xmm0, qword [ebp - 0x1ec]
push esi
movq qword [eax + 0x10], xmm0
call fcn.00498240
add esp, 0x20
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x4929fe
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x492a29
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492a20
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
mov eax, dword [eax]
mov dword [eax + 8], 1
cmp dword [esi + 0x300], 0
mov dword [esi + 0x2ec], 0xa
je 0x492a76
mov ecx, dword [esi]
push esi
call fcn.0048fce0
push eax
mov eax, dword [ecx + 0x184]
push 0
push ecx
call eax
add esp, 0x10
cmp eax, 1
jge 0x492a76
call ebx
push eax
push str.waiting_for_initial_communication_packet
push dword [0x7d1304]
push dword [0x7d0370]
push 0x7dd
jmp 0x492670
push 0
push 0
push esi
call fcn.0048ee50
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x1e4], ecx
cmp ecx, 0xffffffff
jne 0x492aa7
cmp dword [esi + 0x58], 0x7dd
jne 0x492679
call ebx
push eax
push str.reading_initial_communication_packet
jmp 0x492a60
mov eax, dword [esi + 0x10]
lea ebx, [eax + ecx]
movzx eax, byte [eax]
mov dword [ebp - 0x1c8], ebx
mov dword [esi + 0x2ec], eax
cmp eax, 0xa
je 0x492ada
push 0xa
push eax
push dword [0x7d1244]
push dword [0x7d0370]
push 0x7d7
jmp 0x492670
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.0049f2c0
mov ecx, eax
add esp, 4
mov dword [ebp - 0x1c4], ecx
mov eax, dword [ecx + 1]
add ecx, 5
mov dword [esi + 0x2d8], eax
mov dword [ebp - 0x1b4], ecx
lea eax, [ecx + 0xa]
cmp ebx, eax
jb 0x492b12
movzx eax, word [ecx + 9]
mov dword [esi + 0x2e8], eax
lea eax, [ecx + 0x1b]
mov dword [ebp - 0x1b8], eax
cmp ebx, eax
jb 0x492b67
movsx eax, byte [ecx + 0xb]
mov dword [esi + 0x2f8], eax
movzx eax, word [ecx + 0xc]
mov dword [esi + 0x2f4], eax
movzx eax, word [ecx + 0xe]
shl eax, 0x10
or dword [esi + 0x2e8], eax
movsx eax, byte [ecx + 0x10]
mov dword [ebp - 0x1d4], eax
test eax, eax
jns 0x492b67
push dword [0x7d0370]
push 0x7eb
push esi
call fcn.00494b70
add esp, 0xc
jmp 0x492679
push esi
call fcn.00490a80
add esp, 4
test eax, eax
jne 0x492679
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x492b9b
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492b87
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1d0], eax
jmp 0x492ba5
mov dword [ebp - 0x1d0], 1
mov ecx, dword [ebp - 0x1bc]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492bb0
sub ecx, edx
mov edx, dword [ebp - 0x1cc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x492bc2
mov eax, dword [ebp - 0x1c4]
sub edx, edi
sub eax, dword [esi + 0x10]
lea edi, [esi + 0x27c]
push 0
inc eax
push eax
lea eax, [esi + 0x280]
push eax
push dword [ebp - 0x1d0]
lea eax, [ecx + 1]
push edi
push eax
lea eax, [esi + 0x270]
push eax
lea eax, [edx + 1]
push eax
lea eax, [esi + 0x284]
push eax
push 0
push dword [0x87f778]
call fcn.00499f40
add esp, 0x2c
test eax, eax
je 0x49303c
mov eax, dword [ebp - 0x1e0]
push 0
push eax
push dword [0x87f778]
call fcn.00499ef0
add esp, 0xc
mov dword [esi + 0x274], eax
test eax, eax
je 0x49303c
push 0
push dword [ebp - 0x1d8]
push dword [0x87f778]
call fcn.00499ef0
add esp, 0xc
mov dword [esi + 0x278], eax
test eax, eax
je 0x49303c
push dword [ebp - 0x1cc]
push dword [esi + 0x284]
call fcn.0049f350
push dword [ebp - 0x1bc]
push dword [esi + 0x270]
call fcn.0049f350
mov eax, dword [ebp - 0x1b0]
add esp, 0x10
test eax, eax
je 0x492c9f
push eax
push dword [edi]
call fcn.0049f350
add esp, 8
jmp 0x492ca5
mov dword [edi], 0
mov eax, dword [esi + 0x10]
inc eax
push eax
push dword [esi + 0x280]
call fcn.0049f350
mov ecx, dword [ebp - 0x1b8]
add esp, 8
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x2e0], eax
lea eax, [ecx + 0xd]
cmp ebx, eax
jb 0x492b4e
push 8
push dword [ebp - 0x1b4]
lea ebx, [ecx - 8]
push ebx
call dword [sym.imp.VCRUNTIME140.dll_memmove]
mov edi, dword [ebp - 0x1c8]
add esp, 0xc
sub edi, ebx
test dword [esi + 0x2e8], 0x80000
je 0x492d15
mov edx, dword [ebp - 0x1d4]
lea ecx, [ebx + edx]
cmp ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1d4], ecx
cmovbe edi, edx
jmp 0x492d1f
mov dword [ebp - 0x1d4], str.mysql_native_password
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492d3c
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x492da5
mov eax, dword [esi + 0x10]
sub esp, 0x18
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov eax, esp
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0
movups xmm0, xmmword [ebp - 0x1fc]
push 7
push esi
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1ec]
movq qword [eax + 0x10], xmm0
call fcn.00498240
add esp, 0x20
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492dc2
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x492ded
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492de4
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
mov eax, dword [eax]
mov dword [eax + 8], 2
mov eax, dword [esi + 0x384]
test eax, eax
je 0x492e14
cmp dword [eax + 0x64], 2
ja 0x492e14
mov ecx, dword [esi + 0x310]
cmp ecx, 4
je 0x492e0d
cmp ecx, 3
jne 0x492e14
mov dword [eax + 0x64], 1
push dword [ebp + 0x24]
mov eax, dword [ebp - 0x1dc]
push eax
push esi
call fcn.0048e7d0
add esp, 0xc
test edi, edi
je 0x492e89
mov eax, dword [esi + 0x384]
test eax, eax
je 0x492e89
cmp dword [eax + 0x64], 1
je 0x492e89
push 0x10
push edi
push dword [0x87f768]
call fcn.00499d60
add esp, 0xc
mov dword [ebp - 0x1b0], eax
test eax, eax
jne 0x492e75
push dword [0x7d0370]
push 0x7d8
push esi
call fcn.00494b70
add esp, 0xc
mov edi, dword [ebp - 0x1b0]
jmp 0x49267b
push edi
push ebx
push eax
mov byte [ebp - 0x1a9], 1
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x492e8f
mov dword [ebp - 0x1b0], ebx
push esi
call fcn.0048e870
add esp, 4
test eax, eax
jne 0x492e6a
mov ebx, dword [ebp - 0x1dc]
push ebx
push dword [ebp - 0x1d4]
push edi
mov edi, dword [ebp - 0x1b0]
push edi
push esi
call fcn.00494130
add esp, 0x14
test eax, eax
jne 0x49267b
cmp byte [ebp - 0x1a9], 1
jne 0x492eda
push edi
mov byte [ebp - 0x1a9], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492ef7
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
cmp dword [eax], 0
je 0x492f22
mov eax, dword [esi + 0x3c8]
test eax, eax
jne 0x492f19
push 0x30
push 0x34
push eax
call fcn.00499d60
add esp, 0xc
mov dword [esi + 0x3c8], eax
mov eax, dword [eax]
mov dword [eax + 8], 4
test byte [esi + 0x2e4], 0x20
je 0x492f2f
mov byte [esi + 0x50], 1
test ebx, ebx
je 0x492f80
cmp dword [esi + 0x28c], 0
jne 0x492f80
push ebx
push esi
call fcn.00493290
test eax, eax
je 0x492f80
cmp dword [esi + 0x58], 0x7dd
jne 0x49267b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
push str.Setting_intital_database
push dword [0x7d1304]
push dword [0x7d0370]
push 0x7dd
push esi
call fcn.00494c70
add esp, 0x18
jmp 0x49267b
mov eax, dword [esi + 0x32c]
test eax, eax
je 0x493027
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov cl, byte [esi + 0x38d]
mov byte [ebp - 0x1bd], cl
mov byte [esi + 0x38d], 0
lea eax, [edi + eax*4]
mov dword [ebp - 0x1e4], eax
cmp edi, eax
jae 0x493021
mov edx, dword [edi]
mov ecx, edx
lea ebx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x492fc0
sub ecx, ebx
push ecx
push edx
push esi
call fcn.00493060
test eax, eax
jne 0x492e6a
nop dword [eax]
cmp dword [esi + 0x294], 0
je 0x493000
push esi
call fcn.0048dcc0
add esp, 4
test eax, eax
je 0x492e6a
push eax
call fcn.00490430
push esi
call fcn.004964f0
test eax, eax
jg 0x492e6a
je 0x492fe0
add edi, 4
cmp edi, dword [ebp - 0x1e4]
jb 0x492fb3
mov cl, byte [ebp - 0x1bd]
mov byte [esi + 0x38d], cl
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e7e02
mov esp, ebp
pop ebp
ret 0x20
push dword [0x7d0370]
push 0x7d8
push esi
call fcn.00494b70
add esp, 0xc
jmp 0x492679