Function at 0x408700
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x520678
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, dword [esp + 0x84]
lea ecx, [esp + 0x60]
call fcn.00434f90
xor ebp, ebp
mov dword [esp + 0x7c], ebp
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebp
call fcn.00402700
cmp eax, 1
jne 0x408757
mov eax, dword [esp + 0x24]
mov dword [eax - 4], ebp
mov byte [esp + 0x7c], 1
push ebp
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], ebp
call fcn.00402700
cmp eax, 1
jne 0x408776
mov ecx, dword [esp + 0x2c]
mov dword [ecx - 4], ebp
mov byte [esp + 0x7c], 2
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.00402700
cmp eax, 1
jne 0x408795
mov edx, dword [esp + 0x20]
mov dword [edx - 4], ebp
mov byte [esp + 0x7c], 3
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x5c]
push edx
mov edx, dword [esi + 0x40]
lea ebx, [esi + 0x50]
push eax
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push eax
push ecx
lea edx, [esp + 0x4c]
push str.a.EXAM_ID_s_AND_a.EXAM_YEAR_s_AND_a.EXAM_NOT_s_AND_a.EXAM_DATE_s_AND_a.EXAM_TERM_s_AND_a.EXAM_ROOM_ID_s_AND_a.USER_NO_s_AND_a.SEAT_NO_s
push edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
call fcn.00402230
mov eax, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x4c]
push eax
mov eax, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push edx
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push eax
push ecx
lea edx, [esp + 0x68]
push 0x547fa8
push edx
call fcn.00402230
add esp, 0x50
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00402700
cmp eax, 1
jne 0x408821
mov eax, dword [esp + 0x14]
mov dword [eax - 4], ebp
push 0x2800
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 4
call fcn.00402700
cmp eax, 1
jne 0x408846
mov eax, dword [esp + 0x14]
mov word [eax], bp
mov dword [eax - 4], ebp
push str.a.MARK_COUNT_a.REMAIN_TIME_a.EXAM_START_a.EXAM_END_a.EXAM_COUNT_a.LAST_SELECT_a.SUBTITLE
lea ecx, [esp + 0x18]
call fcn.00402060
mov ebx, dword [esi + 0x64]
cmp ebx, ebp
jne 0x408860
mov ebx, 0x190
mov edi, 1
cmp ebx, edi
jl 0x4088bf
lea esp, [esp]
push edi
push edi
push edi
lea ecx, [esp + 0x44]
push str._a.A_d_b.A_d_AS_B_d
push ecx
call fcn.0040f1d0
add esp, 0x14
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 5
call fcn.0040e610
mov byte [esp + 0x7c], 4
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4088b8
sub eax, 8
push eax
mov dword [esp + 0x3c], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x38], ebp
add edi, 1
cmp edi, ebx
jle 0x408870
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
push ebp
push edi
lea edx, [esp + 0x2c]
push str.SELECT__s_FROM_AnswerTable_a_JOIN_MarkInfoTable_b_ON_a.EXAM_IDb.EXAM_ID_AND_a.EXAM_YEARb.EXAM_YEAR_AND_a.EXAM_NOTb.EXAM_NOT_AND_a.EXAM_DATEb.EXAM_DATE_AND_a.EXAM_TERMb.EXAM_TERM_AND_a.EXAM_ROOM_IDb.EXAM_ROOM_ID_AND_a.USER_NOb.USER_NO_AND_a.SEAT_NOb.SEAT_NO_WHERE__s
push edx
call fcn.00402230
add esp, 0x10
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x28]
call fcn.0040eef0
lea ecx, [esp + 0x60]
push ecx
push eax
push esi
mov byte [esp + 0x88], 6
call fcn.004081a0
test eax, eax
mov byte [esp + 0x7c], 4
mov eax, dword [esp + 0x54]
sete bl
test eax, eax
je 0x40891f
sub eax, 8
push eax
mov dword [esp + 0x58], eax
call fcn.004d37ab
add esp, 4
test bl, bl
je 0x408983
test edi, edi
je 0x408933
add edi, 0xfffffff8
push edi
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x408947
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
test ebp, ebp
je 0x408957
add ebp, 0xfffffff8
push ebp
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40896b
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00435090
xor eax, eax
jmp 0x4090a9
lea ecx, [esp + 0x60]
call fcn.004354a0
test eax, eax
jle 0x409043
xor ebp, ebp
push ebp
lea ecx, [esp + 0x64]
call fcn.00435770
push ebp
push str.MARK_COUNT
lea ecx, [esp + 0x68]
call fcn.00435ba0
push ebp
push str.REMAIN_TIME
lea ecx, [esp + 0x68]
mov dword [esp + 0x5c], eax
call fcn.00435ba0
push 0x5476a1
push str.EXAM_START
lea ecx, [esp + 0x68]
mov dword [esp + 0x50], eax
call fcn.00435c10
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x38], ebp
je 0x408a17
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4089e6
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00402770
cmp eax, 1
jne 0x408a17
push edi
mov edi, dword [esp + 0x3c]
lea edx, [esi + 1]
push edx
push edi
call fcn.004f299b
add esp, 0xc
mov dword [edi - 4], esi
push 0x5476a1
push str.EXAM_END
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 7
call fcn.00435c10
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x34], ebp
je 0x408a71
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408a40
sub eax, edx
mov esi, eax
push esi
lea ecx, [esp + 0x38]
call fcn.00402770
cmp eax, 1
mov ebp, dword [esp + 0x34]
jne 0x408a71
push edi
lea eax, [esi + 1]
push eax
push ebp
call fcn.004f299b
add esp, 0xc
mov dword [ebp - 4], esi
push 0
push str.LAST_SELECT
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 8
call fcn.00435ba0
push 0
push str.SUBTITLE
lea ecx, [esp + 0x68]
mov esi, eax
call fcn.00435ba0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x54]
mov ebx, eax
call fcn.0040eef0
mov edi, eax
lea edx, [esp + 0x30]
mov byte [esp + 0x7c], 9
mov ecx, dword [esp + 0x4c]
push edx
call fcn.0040eef0
push ebx
push esi
mov byte [esp + 0x84], 0xa
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov eax, dword [eax]
push ebp
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
push eax
push str._UserAnswer_UserNo__s__SeatNo__s__MarkCnt__d__RemainTime__d__ExamStart__s__ExamEnd__s__LastSelect__d__Subtitle__d__
push ecx
call fcn.0040f550
mov eax, dword [esp + 0x58]
add esp, 0x28
test eax, eax
je 0x408b15
sub eax, 8
push eax
mov dword [esp + 0x34], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x30], 0
mov byte [esp + 0x7c], 8
mov eax, dword [esp + 0x50]
test eax, eax
je 0x408b32
sub eax, 8
push eax
mov dword [esp + 0x54], eax
call fcn.004d37ab
add esp, 4
xor edi, edi
push edi
push str.EXAM_COUNT
lea ecx, [esp + 0x68]
call fcn.00435ba0
mov esi, eax
push 9
mov dword [esp + 0x60], esi
call fcn.004d37a6
mov ebp, eax
add ebp, 8
mov ebx, 1
mov dword [ebp - 8], ebx
mov byte [ebp], 0
mov dword [esp + 0x1c], ebp
mov dword [ebp - 4], edi
push 9
mov byte [esp + 0x84], 0xb
call fcn.004d37a6
add eax, 8
mov dword [eax - 8], ebx
mov byte [eax], 0
mov dword [esp + 0x24], eax
mov dword [eax - 4], edi
push 9
mov byte [esp + 0x88], 0xc
call fcn.004d37a6
mov ebx, eax
add ebx, 8
mov eax, 1
mov dword [ebx - 8], eax
mov byte [ebx], 0
add esp, 0xc
mov dword [esp + 0x30], ebx
mov dword [ebx - 4], edi
cmp esi, eax
mov byte [esp + 0x7c], 0xd
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], eax
jl 0x408f0a
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push 0x548ec8
push eax
call fcn.0040f860
add esp, 0xc
mov byte [esp + 0x7c], 0xe
mov eax, dword [eax]
push 0x5476a1
push eax
lea ecx, [esp + 0x68]
call fcn.00435c10
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x408c5d
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408c00
sub eax, edx
test ebp, ebp
mov esi, eax
je 0x408c2c
lea ecx, [ebp - 8]
lea eax, [esi + 1]
cmp dword [ecx], eax
jae 0x408c47
push ecx
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x18], 0
lea ecx, [esi + 9]
push ecx
call fcn.004d37a6
mov ebp, eax
add esp, 4
add ebp, 8
lea eax, [esi + 1]
mov dword [esp + 0x18], ebp
mov dword [ebp - 8], eax
push edi
push eax
push ebp
mov byte [esi + ebp], 0
call fcn.004f299b
add esp, 0xc
mov dword [ebp - 4], esi
xor esi, esi
jmp 0x408c98
cmp ebp, esi
je 0x408c77
cmp dword [ebp - 8], 1
lea eax, [ebp - 8]
jae 0x408c91
push eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x18], esi
push 9
call fcn.004d37a6
mov ebp, eax
add esp, 4
add ebp, 8
mov dword [esp + 0x18], ebp
mov dword [ebp - 8], 1
mov byte [ebp], 0
mov dword [ebp - 4], esi
mov byte [esp + 0x7c], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, esi
je 0x408cb9
sub eax, 8
push eax
mov dword [esp + 0x40], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x3c], esi
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push 0x548ecc
push eax
call fcn.0040f860
add esp, 0xc
mov byte [esp + 0x7c], 0xf
mov eax, dword [eax]
push 0x5476a1
push eax
lea ecx, [esp + 0x68]
call fcn.00435c10
cmp eax, esi
mov dword [esp + 0x58], eax
je 0x408d49
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408cf1
sub eax, edx
mov esi, eax
lea edi, [esi + 1]
cmp dword [ebx - 8], edi
lea eax, [ebx - 8]
jae 0x408d2f
push eax
call fcn.004d37ab
lea ecx, [esi + 9]
push ecx
mov dword [esp + 0x38], 0
call fcn.004d37a6
mov ebx, eax
add esp, 8
add ebx, 8
mov dword [esp + 0x30], ebx
mov dword [ebx - 8], edi
mov edx, dword [esp + 0x58]
push edx
push edi
push ebx
mov byte [esi + ebx], 0
call fcn.004f299b
add esp, 0xc
mov dword [ebx - 4], esi
xor esi, esi
jmp 0x408d7c
cmp dword [ebx - 8], 1
lea eax, [ebx - 8]
jae 0x408d76
push eax
call fcn.004d37ab
push 9
mov dword [esp + 0x38], esi
call fcn.004d37a6
mov ebx, eax
add esp, 8
add ebx, 8
mov dword [esp + 0x30], ebx
mov dword [ebx - 8], 1
mov byte [ebx], 0
mov dword [ebx - 4], esi
mov byte [esp + 0x7c], 0xd
mov eax, dword [esp + 0x40]
cmp eax, esi
je 0x408d9d
sub eax, 8
push eax
mov dword [esp + 0x44], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x408dba
add eax, 0xfffffff8
cmp dword [eax], 2
jae 0x408dd2
push eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x1c], esi
push 0xa
call fcn.004d37a6
add esp, 4
add eax, 8
mov dword [esp + 0x1c], eax
mov dword [eax - 8], 2
mov esi, dword [esp + 0x1c]
push 0x548ed0
push 2
push esi
mov byte [esi + 1], 0
call fcn.004f299b
mov dword [esi - 4], 1
add esp, 0xc
mov edi, 0x548560
mov esi, ebp
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov esi, dword [esp + 0x28]
jne 0x408e9c
mov ecx, dword [esp + 0x20]
push esi
push ecx
lea edx, [esp + 0x50]
push 0x548564
push edx
call fcn.0040f1d0
add esp, 0x10
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
mov byte [esp + 0x80], 0x10
call fcn.0040eef0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x84], 0x11
mov edx, dword [esp + 0x8c]
push eax
push edx
call fcn.00408590
mov eax, dword [esp + 0x44]
xor edi, edi
cmp eax, edi
je 0x408e75
sub eax, 8
push eax
mov dword [esp + 0x48], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x44], edi
mov byte [esp + 0x7c], 0xd
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x408e96
sub eax, 8
push eax
mov dword [esp + 0x4c], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x48], edi
mov ebp, dword [esp + 0x18]
jmp 0x408e9e
xor edi, edi
mov eax, dword [esp + 0x1c]
push ebp
push ebx
push eax
push esi
lea ecx, [esp + 0x5c]
push str._Answer_QNo__d__QType__s__Info__s_____CDATA__s_____Answer_
push ecx
call fcn.0040f860
add esp, 0x18
mov byte [esp + 0x7c], 0x12
mov ecx, dword [esp + 0x88]
push eax
call fcn.0040f390
mov byte [esp + 0x7c], 0xd
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x408eeb
sub eax, 8
push eax
mov dword [esp + 0x50], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x4c], edi
cmp ebp, edi
je 0x408ef9
cmp dword [ebp - 4], edi
jle 0x408ef9
add dword [esp + 0x50], 1
add esi, 1
cmp esi, dword [esp + 0x5c]
mov dword [esp + 0x28], esi
jle 0x408bc5
mov edi, dword [esp + 0x88]
push 0xd
mov ecx, edi
call fcn.0040fcd0
test eax, eax
je 0x408f43
mov eax, dword [edi]
test eax, eax
je 0x408f29
mov ecx, dword [eax - 4]
jmp 0x408f2b
xor ecx, ecx
push str.__UserAnswer_
add eax, ecx
push 0xe
push eax
call fcn.004f299b
mov eax, dword [edi]
add esp, 0xc
add dword [eax - 4], 0xd
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x54], eax
je 0x408feb
push eax
lea edx, [esp + 0x88]
push str.MarkCnt__d_
push edx
call fcn.0040f860
mov esi, eax
mov byte [esp + 0x88], 0x13
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x98]
push str.MarkCnt__d_
push ecx
call fcn.0040f860
add esp, 0x18
mov byte [esp + 0x7c], 0x14
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
push edi
call fcn.0040f660
mov eax, dword [esp + 0x88]
test eax, eax
je 0x408fc2
sub eax, 8
push eax
mov dword [esp + 0x8c], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x408feb
sub eax, 8
push eax
mov dword [esp + 0x88], eax
call fcn.004d37ab
add esp, 4
mov dword [esp + 0x84], 0
add ebx, 0xfffffff8
push ebx
call fcn.004d37ab
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x40900b
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
test ebp, ebp
je 0x40901b
add ebp, 0xfffffff8
push ebp
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40902f
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x409043
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409057
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40906b
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40907f
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409093
add eax, 0xfffffff8
push eax
call fcn.004d37ab
add esp, 4
lea ecx, [esp + 0x60]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00435090
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8