Function at 0x493b40
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x52066c
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x7c6ee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp + 0x6c], eax
lea edi, [eax + 0x3c]
mov ecx, edi
call dword [0x530608]
or ebx, 0xffffffff
test eax, eax
jle 0x493c1c
mov ecx, edi
xor esi, esi
call dword [0x530608]
test eax, eax
jle 0x493bb9
push esi
mov ecx, edi
call dword [0x530604]
mov ecx, dword [eax]
test ecx, ecx
je 0x493bac
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, edi
inc esi
call dword [0x530608]
cmp esi, eax
jl 0x493b96
mov esi, dword [0x5304a8]
mov ecx, dword [edi]
mov dword [edi], esi
mov eax, dword [ecx]
mov dword [ebp - 4], 0
test eax, eax
je 0x493be2
cmp eax, 0xffffffff
je 0x493bec
mov eax, ebx
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x493bec
push ecx
call dword [0x530610]
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 1
test eax, eax
je 0x493c0b
cmp eax, 0xffffffff
je 0x493c15
mov eax, ebx
lock xadd dword [esi], eax
setne al
test al, al
jne 0x493c15
push esi
call dword [0x530610]
add esp, 4
mov dword [ebp - 4], 0xffffffff
push ecx
mov ecx, esp
call dword [0x530a18]
lea ecx, [ebp + 0x68]
call dword [0x5307a8]
push eax
lea ecx, [ebp + 0x70]
mov dword [ebp - 4], 2
call dword [0x5309b8]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
lea ecx, [ebp + 0x50]
call dword [0x5307a8]
mov esi, dword [0x53076c]
push 1
push 0x54a5b4
mov byte [ebp - 4], 5
call esi
add esp, 8
mov dword [ebp + 0x74], eax
mov ecx, dword [ebp + 0x6c]
lea eax, [ebp + 0x74]
push 1
push 0
push eax
lea eax, [ebp + 0x54]
mov byte [ebp - 4], 6
push eax
add ecx, 0x110
call dword [0x530434]
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 8
call dword [0x5307a0]
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x58]
call fcn.0047c940
lea ecx, [ebp + 0x58]
call dword [0x530600]
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x5c], eax
call dword [0x5305fc]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x64], 1
mov ecx, dword [ebp + 0x5c]
cmp ecx, eax
setne al
test al, al
je 0x493eca
push ecx
lea ecx, [ebp + 0x74]
call dword [0x5307a4]
cmp dword [ebp + 0x64], 0
mov byte [ebp - 4], 0xa
je 0x493eaa
mov eax, dword [ebp + 0x74]
cmp dword [eax + 4], 0
je 0x493ea3
push 0x3c
push str.SELECT_wd.dispname__wd.dispname_en_FROM_wd_WHERE_wd.wid___1
call esi
mov dword [ebp + 0x48], eax
add esp, 4
mov byte [ebp + 0x40], 0x20
mov ecx, esp
mov byte [ebp - 4], 0xb
push dword [ebp + 0x40]
call dword [0x5307b0]
push 0
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp + 0x48]
call dword [0x530794]
push eax
lea ecx, [ebp + 0x50]
call dword [0x53063c]
lea ecx, [ebp + 0x3c]
call dword [0x5307a0]
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0xa
call dword [0x5307a0]
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp + 0x70]
call dword [0x5309c8]
lea ecx, [ebp + 0x70]
test al, al
je 0x493e3a
call dword [0x5309d8]
test al, al
je 0x493ea3
push 0
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp + 0x70]
call dword [0x5309cc]
mov esi, dword [0x53072c]
lea ecx, [ebp + 0x68]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xc
call esi
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 0xe
call dword [0x530740]
push 1
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0x70]
call dword [0x5309cc]
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], 0xf
push ecx
mov ecx, eax
call esi
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x11
call dword [0x530740]
push 0x28
call fcn.0050ae88
add esp, 4
mov dword [ebp + 0x30], eax
push 0
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.004a7830
push 0xa
mov esi, eax
mov byte [ebp - 4], 0x11
push 0
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x4c], esi
call dword [0x530780]
mov dword [ebp + 0x38], eax
mov ecx, esi
lea eax, [ebp + 0x38]
push eax
call fcn.004a79d0
lea eax, [ebp + 0x68]
mov ecx, esi
push eax
call fcn.004a79b0
lea eax, [ebp + 0x6c]
mov ecx, esi
push eax
call fcn.004a79c0
lea eax, [ebp + 0x4c]
mov ecx, edi
push eax
call fcn.00427a00
lea ecx, [ebp + 0x6c]
call dword [0x5307a0]
lea ecx, [ebp + 0x68]
call dword [0x5307a0]
jmp 0x493e9d
lea eax, [ebp]
push eax
call dword [0x5309c4]
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 0x13
push ecx
mov ecx, eax
call dword [0x530a1c]
mov esi, eax
lea eax, [ebp + 0x34]
mov byte [ebp - 4], 0x14
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
call dword [0x5307bc]
mov ecx, eax
call dword [0x5307b8]
push esi
mov ecx, eax
mov byte [ebp - 4], 0x15
call dword [0x530700]
lea ecx, [ebp + 0x34]
call dword [0x530710]
lea ecx, [ebp + 0x44]
call dword [0x5307a0]
lea ecx, [ebp]
call dword [0x5309b4]
mov esi, dword [0x53076c]
mov dword [ebp + 0x64], 0
lea ecx, [ebp + 0x74]
call dword [0x5307a0]
mov ecx, dword [ebp + 0x5c]
add ecx, 4
xor dword [ebp + 0x64], 1
mov dword [ebp + 0x5c], ecx
je 0x493eca
mov eax, dword [ebp + 0x60]
jmp 0x493cc4
mov edi, dword [ebp + 0x58]
mov byte [ebp - 4], 0x16
mov eax, dword [edi]
test eax, eax
je 0x493eec
cmp eax, 0xffffffff
je 0x493f1e
mov eax, ebx
lock xadd dword [edi], eax
setne al
test al, al
jne 0x493f1e
mov edi, dword [ebp + 0x58]
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 8]
add esi, 4
add ebx, 4
lea esi, [edi + esi*4]
lea ebx, [edi + ebx*4]
cmp ebx, esi
je 0x493f11
sub esi, 4
mov ecx, esi
call dword [0x5307a0]
cmp esi, ebx
jne 0x493f02
push edi
call dword [0x530610]
add esp, 4
or ebx, 0xffffffff
mov edi, dword [ebp + 0x54]
mov byte [ebp - 4], 0x17
mov eax, dword [edi]
test eax, eax
je 0x493f3f
cmp eax, 0xffffffff
je 0x493f6e
lock xadd dword [edi], ebx
dec ebx
setne al
test al, al
jne 0x493f6e
mov edi, dword [ebp + 0x54]
mov esi, dword [edi + 0xc]
mov ebx, dword [edi + 8]
add esi, 4
add ebx, 4
lea esi, [edi + esi*4]
lea ebx, [edi + ebx*4]
cmp ebx, esi
je 0x493f64
sub esi, 4
mov ecx, esi
call dword [0x5307a0]
cmp esi, ebx
jne 0x493f55
push edi
call dword [0x530610]
add esp, 4
lea ecx, [ebp + 0x50]
call dword [0x5307a0]
lea ecx, [ebp + 0x70]
call dword [0x5309c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret