Function at 0x403ef8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push 8
call fcn.00405b39
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4add3a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x40001
push 0x16012707
push 0x52010001
push 1
mov eax, 3
mov ebx, 0x45efe0
call fcn.00405b3f
add esp, 0x10
lea eax, [ebp - 4]
push eax
mov eax, str.SELECT_DISTINCT_cdcs_FROM_sys_mokuai
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004015d5
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403f78
push ebx
call fcn.00405b2d
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x40420d
mov ebx, dword [ebp - 4]
call fcn.004015b5
mov eax, 0
cmp eax, ecx
jl 0x403fa0
push 1
call fcn.00405b57
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x403fbd
mov eax, 0x4adceb
push eax
push 1
mov ebx, 0x406030
call fcn.00405b33
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
fld qword [ebp - 0x20]
call fcn.0040158e
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x404205
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x4067f0
call fcn.00405b33
add esp, 0x10
mov dword [ebp - 0x10], eax
push str._ORDER_BY_xsxh
push dword [ebp - 0x10]
push str.SELECT_mkmc_sjmc_FROM_sys_mokuai_WHERE_cdcs
mov ecx, 3
call fcn.00401315
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404041
push ebx
call fcn.00405b2d
add esp, 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004015d5
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404061
push ebx
call fcn.00405b2d
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4041fd
mov ebx, dword [ebp - 4]
call fcn.004015b5
mov eax, 0
cmp eax, ecx
jl 0x404089
push 1
call fcn.00405b57
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x4040a6
mov eax, 0x4adceb
push eax
push 1
mov ebx, 0x406190
call fcn.00405b33
add esp, 0x10
xor ecx, ecx
push eax
lea eax, [ebp - 0xc]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4041f5
mov ebx, dword [ebp - 4]
call fcn.004015b5
push ebx
push ecx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fmul qword [0x4addcd]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4addcd]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.0040158e
dec eax
jns 0x404110
push 4
call fcn.00405b57
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404123
push 1
call fcn.00405b57
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push dword [ebp - 0x28]
call fcn.0040425b
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 4]
call fcn.004015b5
push ebx
push ecx
fild dword [ebp - 0xc]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fmul qword [0x4addcd]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x4add44]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
call fcn.0040158e
dec eax
jns 0x404176
push 4
call fcn.00405b57
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x404189
push 1
call fcn.00405b57
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x48], ebx
mov ebx, 0xc
call fcn.00401004
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp - 0x48]
mov eax, dword [ebx]
test eax, eax
jne 0x4041bc
mov eax, 0x4adceb
push eax
push 0x80000301
push 0
push dword [ebp - 0x2c]
push 0x40001
push 0x16012707
push 0x52010001
push 8
mov eax, 3
mov ebx, 0x45ec80
call fcn.00405b3f
add esp, 0x64
pop eax
pop ebx
pop ecx
jmp 0x4040c2
add esp, 0xc
jmp 0x4041fd
pop eax
pop ebx
pop ecx
jmp 0x403fe7
add esp, 0xc
jmp 0x40420d
call fcn.00401b90
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x404230
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40422c
imul eax, dword [ebx]
jmp 0x404221
mov ecx, eax
test ecx, ecx
je 0x40424f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x404248
push ebx
push eax
call fcn.00405b2d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x404236
call fcn.00405b2d
add esp, 4
mov esp, ebp
pop ebp
ret