Function at 0x5f7aa4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x5f7aac
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5f8624
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x304]
call fcn.004c2d20
mov eax, dword [ebx + 0x304]
call fcn.004db058
mov edx, 0x5f863c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x304]
call fcn.004c2d14
mov eax, dword [ebx + 0x304]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x5f7b4f
push 0x40
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
mov eax, dword [eax + 0xa5c]
call fcn.00404fac
push eax
push 0x5f8670
mov eax, ebx
call fcn.0048cc2c
push eax
call sub.user32.dll_MessageBoxA_1
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.00486144
mov eax, dword [ebx + 0x304]
call fcn.004c2d20
mov eax, ebx
call fcn.004a3b5c
jmp 0x5f85de
mov eax, dword [ebx + 0x30c]
mov edx, dword [ebx + 0x48]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x5f7b62
adc edx, 0
call fcn.0048596c
mov ecx, dword [ebx + 0x30c]
mov eax, dword [ebx + 0x4c]
sub eax, dword [ecx + 0x4c]
mov esi, 3
cdq
idiv esi
mov edx, eax
mov eax, ecx
call fcn.00485990
mov dl, 1
mov eax, dword [ebx + 0x30c]
call fcn.00486144
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
lea eax, [ebp - 0xc]
call fcn.00404aec
jmp 0x5f7c24
mov edx, 0x5f869c
mov eax, esi
call fcn.004c3d24
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x10]
call fcn.00409a60
mov eax, dword [ebp - 0x10]
call fcn.00404dac
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x5f7c19
mov esi, 1
push dword [ebp - 0xc]
push 0x5f86ac
push 0x5f86b8
lea eax, [ebp - 0x7c]
push eax
lea ecx, [esi + esi*2]
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040500c
push dword [ebp - 0x7c]
push 0x5f86b8
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404e6c
inc esi
dec edi
jne 0x5f7bdf
mov eax, dword [ebx + 0x304]
call fcn.004c5464
mov esi, dword [ebx + 0x304]
cmp byte [esi + 0xa1], 0
je 0x5f7ba5
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.0040504c
mov eax, dword [ebx + 0x308]
call fcn.004c2d20
mov eax, dword [ebx + 0x308]
call fcn.004db058
mov edx, 0x5f86c4
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x308]
call fcn.004daf80
cmp dword [ebp - 0xc], 0
jne 0x5f7c91
mov eax, dword [ebx + 0x308]
call fcn.004db058
mov edx, 0x5f86ec
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x5f7cc0
mov eax, dword [ebx + 0x308]
call fcn.004db058
push eax
push 0x5f8728
push dword [ebp - 0xc]
push 0x5f8770
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00404e6c
mov edx, dword [ebp - 0x80]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x308]
call fcn.004daf80
mov eax, dword [ebx + 0x308]
call fcn.004db058
mov edx, 0x5f877c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x308]
call fcn.004c2d14
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
call fcn.0045d0c4
mov eax, dword [ebx + 0x308]
call fcn.004c514c
jmp 0x5f84e9
mov edx, 0x5f87bc
mov eax, esi
call fcn.004c3d24
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x5f87d0
mov eax, dword [ebx + 0x308]
call fcn.004c3d24
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x5f87e8
mov eax, dword [ebx + 0x308]
call fcn.004c3d24
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x5f87f8
mov eax, dword [ebx + 0x308]
call fcn.004c3d24
mov edx, dword [eax]
call dword [edx + 0x58]
mov esi, eax
mov edx, 0x5f8810
mov eax, dword [ebx + 0x308]
call fcn.004c3d24
lea edx, [ebp - 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x84]
call fcn.00404dac
mov ecx, 3
cdq
idiv ecx
cmp eax, 0x12
ja case.default.0x5f7d9e
jmp dword [eax*4 + 0x5f7da5]
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0045d158
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x70]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x6c]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x68]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x64]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x60]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x5c]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x58]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x50]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4c]
call fcn.0045d148
mov edi, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], edi
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
call fcn.0045d148
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
call fcn.0045d148
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x40]
call fcn.0045d148
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x3c]
call fcn.0045d148
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x38]
call fcn.0045d148
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
call fcn.0045d148
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
call fcn.0045d148
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
jmp case.default.0x5f7d9e
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
call fcn.0045d148
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c070
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0045c0c8
mov edx, dword [ebp - 0x1c]
mov eax, 0x5f8820
call fcn.004050f0
test eax, eax
jle 0x5f82b5
mov edx, dword [0x67f290]
mov eax, 0x10
call fcn.00405ba4
mov dword [eax + 0xc], esi
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0045bed0
cmp dword [ebp - 0x18], 0
je 0x5f84de
mov edx, dword [ebp - 0x1c]
mov eax, 0x5f8830
call fcn.004050f0
test eax, eax
jg 0x5f8307
mov edx, dword [ebp - 0x1c]
mov eax, 0x5f8840
call fcn.004050f0
test eax, eax
jg 0x5f8307
mov edx, dword [ebp - 0x1c]
mov eax, 0x5f8850
call fcn.004050f0
test eax, eax
jg 0x5f8307
mov edx, dword [ebp - 0x1c]
mov eax, 0x5f8860
call fcn.004050f0
test eax, eax
jle 0x5f84de
mov eax, dword [ebx + 0x314]
call fcn.004c2d20
mov eax, dword [ebx + 0x314]
call fcn.004db058
push eax
push 0x5f8870
push dword [0x6aa0ec]
push 0x5f88c8
push dword [0x6aa0f0]
push 0x5f86b8
lea eax, [ebp - 0x88]
mov edx, 5
call fcn.00404e6c
mov edx, dword [ebp - 0x88]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x314]
call fcn.004d92e4
mov edx, 0x5f88e4
call fcn.004d140c
push eax
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x18]
call fcn.00416720
lea edx, [ebp - 0x98]
pop eax
call fcn.004d26ec
mov eax, dword [ebx + 0x314]
call fcn.004c2d14
jmp 0x5f84cb
mov edx, 0x5f8908
mov eax, edi
call fcn.004c3d24
lea edx, [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
cmp dword [ebp - 0x9c], 0
jne 0x5f83ed
push dword [ebp - 0x18]
push 0x5f8920
mov edx, 0x5f892c
mov eax, dword [ebx + 0x314]
call fcn.004c3d24
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0xa0]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404e6c
jmp 0x5f8449
mov edx, 0x5f8908
mov eax, dword [ebx + 0x314]
call fcn.004c3d24
lea edx, [ebp - 0xa4]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0xa4]
push 0x5f8944
push dword [ebp - 0x18]
push 0x5f8920
mov edx, 0x5f892c
mov eax, dword [ebx + 0x314]
call fcn.004c3d24
lea edx, [ebp - 0xa8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
push dword [ebp - 0xa8]
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404e6c
mov edx, dword [0x67f290]
mov eax, 0x10
call fcn.00405ba4
mov edi, eax
mov dword [edi + 0xc], esi
lea eax, [edi + 8]
mov edx, dword [ebp - 0x18]
call fcn.00404b40
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045bed0
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.0045d148
mov edi, eax
mov edx, 1
mov eax, edi
call fcn.0045c070
mov edx, 1
mov eax, edi
call fcn.0045c0c8
mov edx, dword [0x67f290]
mov eax, 0x10
call fcn.00405ba4
mov dword [eax + 0xc], esi
mov edx, eax
mov eax, edi
call fcn.0045bed0
mov eax, dword [ebx + 0x314]
call fcn.004c5464
mov edi, dword [ebx + 0x314]
cmp byte [edi + 0xa1], 0
je 0x5f8395
mov eax, dword [ebx + 0x308]
call fcn.004c5464
mov esi, dword [ebx + 0x308]
cmp byte [esi + 0xa1], 0
je 0x5f7d0c
xor esi, esi
jmp 0x5f85b7
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov edx, esi
call fcn.0045d450
mov edx, dword [eax + 8]
lea eax, [ebp - 0x10]
call fcn.00404b84
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov edx, esi
call fcn.0045d450
call fcn.0045c4f4
test al, al
jne 0x5f85b6
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
push dword [eax + 0xa44]
push 0x5f8950
mov eax, dword [0x6a42c8]
mov eax, dword [eax]
push dword [eax + 0xa64]
push 0x5f8944
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov edx, esi
call fcn.0045d450
push dword [eax + 8]
push 0x5f8960
lea eax, [ebp - 0xac]
mov edx, 6
call fcn.00404e6c
mov eax, dword [ebp - 0xac]
call fcn.0040a46c
test al, al
jne 0x5f85b6
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
mov edx, esi
call fcn.0045d450
call fcn.0045cd9c
or esi, 0xffffffff
inc esi
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x26c]
call fcn.0045d08c
dec eax
cmp esi, eax
jle 0x5f8503
xor edx, edx
mov eax, dword [ebx + 0x30c]
call fcn.00486144
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f862b
lea eax, [ebp - 0xac]
mov edx, 5
call fcn.00404b10
lea eax, [ebp - 0x98]
call fcn.00411fd4
lea eax, [ebp - 0x88]
mov edx, 5
call fcn.00404b10
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404b10
ret