Function at 0x686470
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b0
push ebx
push esi
push edi
lea edi, [ebp - 0x8b0]
mov ecx, 0x22c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x818f7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
cmp dword [ebp + 8], 0
je 0x6864c7
cmp dword [ebp + 0xc], 0
jne 0x6864ce
xor eax, eax
jmp 0x687671
call fcn.0053318f
test eax, eax
je 0x6864de
xor eax, eax
jmp 0x687671
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0053528c
add esp, 4
test eax, eax
jne 0x6864fe
mov eax, 1
test eax, eax
je 0x686ecd
xor eax, eax
mov word [ebp - 0x54], ax
xor eax, eax
mov dword [ebp - 0x52], eax
mov dword [ebp - 0x4e], eax
mov dword [ebp - 0x4a], eax
mov word [ebp - 0x46], ax
mov byte [ebp - 0x45c], 0
push 0x3ff
push 0
lea eax, [ebp - 0x45b]
push eax
call fcn.00533469
add esp, 0xc
mov byte [ebp - 0x4e4], 0
push 0x7f
push 0
lea eax, [ebp - 0x4e3]
push eax
call fcn.00533469
add esp, 0xc
mov byte [ebp - 0x5ec], 0
push 0xff
push 0
lea eax, [ebp - 0x5eb]
push eax
call fcn.00533469
add esp, 0xc
mov dword [ebp - 0x5f8], 0
xor eax, eax
mov word [ebp - 0x604], ax
xor eax, eax
mov word [ebp - 0x602], ax
xor eax, eax
mov word [ebp - 0x610], ax
xor eax, eax
mov word [ebp - 0x60e], ax
mov dword [ebp - 0x61c], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x634], 0
push 0
push 1
call fcn.0068be30
add esp, 8
push 1
call fcn.0068c050
add esp, 4
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x2f94], 0
jne 0x6865ee
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005351dd
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0
push 0
push 0
call fcn.0068a120
add esp, 8
test eax, eax
je 0x686631
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0053528c
add esp, 4
test eax, eax
je 0x68662a
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00532906
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0
xor eax, eax
jmp 0x687671
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.0053528c
add esp, 4
test eax, eax
jne 0x68666b
push 0
call fcn.00534bde
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f94], 1
mov dword [ebp - 0x634], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0
jne 0x68667b
xor eax, eax
jmp 0x687671
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00535372
add esp, 4
mov eax, dword [0x818b28]
add eax, 0x61
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__serverpaula.c
lea ecx, [ebp - 0x54]
push ecx
call fcn.00532d7f
add esp, 0xc
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x48]
mov dword [eax + 0xc], edx
call fcn.00533c75
add esp, 0x10
mov dword [ebp - 0x604], eax
mov byte [ebp - 0x601], 1
mov eax, dword [ebp - 0x604]
mov dword [ebp - 0x610], eax
mov al, byte [ebp - 0x60e]
add al, 1
mov byte [ebp - 0x60e], al
movzx eax, byte [ebp - 0x60e]
cmp eax, 0xc
jle 0x686714
mov byte [ebp - 0x60e], 1
mov ax, word [ebp - 0x610]
add ax, 1
mov word [ebp - 0x610], ax
mov dword [ebp - 0x61c], str.SALES_YEAR_MONTH_ACCOUNTING_DAY_GROSS_CASH_SALES_GROSS_CHARGE_SALES_NET_SALES_RETURNS_RETURNS_COST_MISCELLANEOUS_ADJUSTMENTS_INVOICE_COUNT_VOID_AMOUNT_VOID_COUNT_RECEIVED_ON_ACCOUNT_ROA_DISCOUNT_TAKEN_JOURNAL_ENTRIES_SALES_COST_FREIGHT_CHARGES
push 0x2c
mov eax, dword [ebp - 0x61c]
push eax
call fcn.0053585e
add esp, 8
add eax, 1
mov dword [ebp - 0x628], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534ed1
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x5f8], 0
mov eax, dword [ebp - 0x3c]
push eax
movzx ecx, byte [ebp - 0x60d]
push ecx
movzx edx, byte [ebp - 0x60e]
push edx
movzx eax, word [ebp - 0x610]
push eax
movzx ecx, byte [ebp - 0x601]
push ecx
movzx edx, byte [ebp - 0x602]
push edx
movzx eax, word [ebp - 0x604]
push eax
mov ecx, dword [ebp - 0x61c]
push ecx
push str.SET_ROWCOUNT_1_SELECT__s_FROM_STORE_DAILY_SALES_WHERE__SALES_YEAR_MONTH_04d__02d__02d_OR_SALES_YEAR_MONTH_04d__02d__02d__AND_LOC_d_ORDER_BY_SALES_YEAR_MONTH_DESC__ACCOUNTING_DAY_DESC
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.00534a94
add esp, 0x28
test eax, eax
je 0x686d73
mov dword [ebp - 0x640], 0
mov eax, dword [ebp - 0x628]
push eax
push 9
push 0x3ff
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.00533978
add esp, 0x14
test eax, eax
je 0x686821
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.00687d90
add esp, 8
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jne 0x68681f
lea eax, [ebp - 0x45c]
push eax
push str.:5:RefreshSales___EAP:_Sales_line___s__is_invalid.
push 0x100
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.00535be2
add esp, 0x10
jmp 0x68689c
movzx eax, byte [ebp - 0x601]
cmp eax, 1
je 0x686839
movzx eax, byte [ebp - 0x601]
cmp eax, 2
jne 0x68684f
mov eax, dword [ebp + 0xc]
push eax
push 0
call fcn.00687d90
add esp, 8
mov dword [ebp - 0x640], eax
jmp 0x68689c
mov eax, dword [ebp - 0x3c]
push eax
movzx ecx, byte [ebp - 0x60d]
push ecx
movzx edx, byte [ebp - 0x60e]
push edx
movzx eax, word [ebp - 0x610]
push eax
movzx ecx, byte [ebp - 0x601]
push ecx
movzx edx, byte [ebp - 0x602]
push edx
movzx eax, word [ebp - 0x604]
push eax
push str.:5:RefreshSales___EAP:_FetchRowODBC___04d__02d__02d_OR__04d__02d__02d_AND_LOC_d___returned_an_empty_set.__This_should_only_happen_if_not_a_single_invoice_has_yet_been_billed_this_month.
push 0x100
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.00535be2
add esp, 0x28
cmp dword [ebp - 0x640], 0
jle 0x686d71
mov dword [ebp - 0x61c], str.EOD_STARTED_DATE_NEW_DAY_STARTED_DATE_SALES_YEAR_MONTH_ACCT_DAY_STARTED_BY_IP_ADDRESS_STARTED_BY_EMPLOYEE_ID
push 0x2c
mov eax, dword [ebp - 0x61c]
push eax
call fcn.0053585e
add esp, 8
add eax, 1
mov dword [ebp - 0x628], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x61c]
push ecx
push str.SET_ROWCOUNT_1_SELECT__s_FROM_END_OF_DAY_MONITOR_WHERE_LOC_d_AND_EOD_STARTED_DATE_SELECT_MAX_EOD_STARTED_DATE__FROM_END_OF_DAY_MONITOR_
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.00534a94
add esp, 0x10
test eax, eax
je 0x686d4d
xor eax, eax
mov word [ebp - 0x658], ax
xor eax, eax
mov dword [ebp - 0x656], eax
mov dword [ebp - 0x652], eax
mov dword [ebp - 0x64e], eax
mov word [ebp - 0x64a], ax
xor eax, eax
mov word [ebp - 0x670], ax
xor eax, eax
mov dword [ebp - 0x66e], eax
mov dword [ebp - 0x66a], eax
mov dword [ebp - 0x666], eax
mov word [ebp - 0x662], ax
mov dword [ebp - 0x67c], 0
mov eax, dword [ebp - 0x628]
push eax
push 9
push 0x3ff
lea ecx, [ebp - 0x45c]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
push eax
call fcn.00533978
add esp, 0x14
test eax, eax
je 0x686ad5
mov dword [ebp - 0x688], 0
mov dword [ebp - 0x694], 0
push 0x80
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x4e4]
push ecx
call fcn.00535647
add esp, 0xc
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x688]
push eax
lea ecx, [ebp - 0x8a8]
push ecx
call fcn.00532cf3
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x658], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x654], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x650], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x64c], eax
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
push 0
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x688]
push eax
lea ecx, [ebp - 0x890]
push ecx
call fcn.00532cf3
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x670], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x66c], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x668], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
push 0
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
push 0
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
mov eax, dword [ebp - 0x688]
push eax
call fcn.00535cdc
add esp, 4
mov dword [ebp - 0x67c], eax
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
push 0
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
lea eax, [ebp - 0x694]
push eax
push 0x7a19e4
push 0
call fcn.0053541c
add esp, 0xc
mov dword [ebp - 0x688], eax
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x658]
mov dword [eax], ecx
mov edx, dword [ebp - 0x654]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x650]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x64c]
mov dword [eax + 0xc], edx
call fcn.00535255
add esp, 0x14
test eax, eax
jne 0x686b45
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x670]
mov dword [eax], ecx
mov edx, dword [ebp - 0x66c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x668]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x664]
mov dword [eax + 0xc], edx
call fcn.00535255
add esp, 0x14
test eax, eax
je 0x686cb8
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x5f8], eax
mov eax, dword [0x818b28]
add eax, 0xda
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__serverpaula.c
mov ecx, dword [ebp + 0xc]
add ecx, 0x4c
push ecx
call fcn.00532d7f
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, 0x5c
mov ecx, dword [ebp - 0x658]
mov dword [eax], ecx
mov edx, dword [ebp - 0x654]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x650]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x64c]
mov dword [eax + 0xc], edx
movzx eax, word [ebp - 0x654]
shl eax, 4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x2f9c]
mov eax, dword [ebp - 0x658]
mov dword [edx], eax
mov ecx, dword [ebp - 0x654]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x650]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x64c]
mov dword [edx + 0xc], ecx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x670]
mov dword [eax], ecx
mov edx, dword [ebp - 0x66c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x668]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x664]
mov dword [eax + 0xc], edx
call fcn.00533928
add esp, 0x10
test eax, eax
jne 0x686c60
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x658]
mov dword [eax], ecx
mov edx, dword [ebp - 0x654]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x650]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x64c]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x670]
mov dword [eax], ecx
mov edx, dword [ebp - 0x66c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x668]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x664]
mov dword [eax + 0xc], edx
call fcn.005330e5
add esp, 0x20
test eax, eax
je 0x686c69
mov dword [ebp - 0x18], 1
jmp 0x686cb3
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x67c]
cmp eax, dword [ebp - 0x640]
jg 0x686c90
cmp dword [ebp - 0x67c], 1
jne 0x686cb3
cmp dword [ebp - 0x640], 0x14
jle 0x686cb3
mov dword [ebp - 0x5f8], 0
push str.Yesterday_sales_catch_test.
push 0x100
lea eax, [ebp - 0x5ec]
push eax
call fcn.00535be2
add esp, 0xc
jmp 0x686d4b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5f8], 0
lea eax, [ebp - 0x4e4]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x670]
mov dword [ecx], edx
mov eax, dword [ebp - 0x66c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x668]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x664]
mov dword [ecx + 0xc], eax
call fcn.00535dea
add esp, 0x10
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x658]
mov dword [ecx], edx
mov eax, dword [ebp - 0x654]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x650]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x64c]
mov dword [ecx + 0xc], eax
call fcn.00535dea
add esp, 0x10
push eax
push str.:7:RefreshSales___EAP:_Sales_CANNOT_be_posted:_stEODTime___s__stNewDayTime___s:__s
push 0x100
lea ecx, [ebp - 0x5ec]
push ecx
call fcn.00535be2
add esp, 0x18
jmp 0x686d71
lea eax, [ebp - 0x4e4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
push str.:7:RefreshSales___EAP:_ExecuteODBCFormat_LOC_d__FAILED:_EOD_cannot_be_determined:__s
push 0x100
lea edx, [ebp - 0x5ec]
push edx
call fcn.00535be2
add esp, 0x14
jmp 0x686dc7
lea eax, [ebp - 0x4e4]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
movzx edx, byte [ebp - 0x60d]
push edx
movzx eax, byte [ebp - 0x60e]
push eax
movzx ecx, word [ebp - 0x610]
push ecx
movzx edx, byte [ebp - 0x601]
push edx
movzx eax, byte [ebp - 0x602]
push eax
movzx ecx, word [ebp - 0x604]
push ecx
push str.:7:RefreshSales___EAP:_OUTER_ExecuteODBCFormat__SALES_YEAR_MONTH_04d__02d__02d_OR_SALES_YEAR_MONTH_04d__02d__02d__AND_LOC_d_FAILED:__s
push 0x100
lea edx, [ebp - 0x5ec]
push edx
call fcn.00535be2
add esp, 0x2c
cmp dword [ebp - 0x5f8], 0
jle 0x686e8b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f90], 1
cmp dword [ebp - 0x18], 0
je 0x686e5c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x2f98], 0
jne 0x686e5a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x44], 0
je 0x686e05
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x38], 0
jne 0x686e20
mov eax, dword [ebp + 0xc]
push eax
call fcn.00687ce0
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f98], 1
jmp 0x686e5a
mov eax, dword [ebp + 0xc]
push eax
call fcn.0068a3b0
add esp, 4
call fcn.0068a370
test eax, eax
je 0x686e5a
mov eax, dword [ebp + 0xc]
push eax
call fcn.00687ce0
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call fcn.0068a3b0
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f98], 1
jmp 0x686e75
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f98], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0068a3b0
add esp, 4
mov dword [0x818ae8], 0
mov eax, 1
jmp 0x687671
cmp dword [ebp - 0x634], 0
jne 0x686ec6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00532906
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00686470
add esp, 0xc
jmp 0x687671
xor eax, eax
jmp 0x687671
mov dword [ebp - 0x30], 0
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__serverpaula.c
mov eax, dword [0x818b28]
add eax, 0x14e
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00533a0e
add esp, 0x10
test eax, eax
jne 0x687140
push 0
push 0
call fcn.0068a120
add esp, 8
test eax, eax
jne 0x68713b
cmp dword [0x94745c], 0
je 0x686f31
call fcn.00533cd9
sub eax, dword [0x947460]
cmp eax, dword [0x94745c]
jbe 0x68713b
cmp dword [0x947464], 0
je 0x686f58
push str.PaulaConfig.cfg
mov eax, dword [ebp + 8]
push eax
call fcn.00534b0c
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [0x947464], 0
mov eax, dword [ebp + 8]
add eax, 0x1094
push eax
call fcn.00534d0a
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], eax
push 1
push 0x4b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534d55
add esp, 0xc
push 1
push 0xa
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005342ab
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00532dd9
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 0xd
ja case.0x686fc7.5
mov ecx, dword [ebp - 0x8b0]
jmp dword [ecx*4 + 0x6877a8]
mov dword [0x94745c], 0
mov dword [0x947460], 0
jmp 0x68713b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x28], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x30], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x34], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x38], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x3c], 0
mov eax, dword [ebp + 0xc]
fldz
fstp dword [eax + 0x40]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x44], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x48], 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0068a3b0
add esp, 4
mov dword [ebp - 0x18], eax
push 0
push 1
call fcn.0068a120
add esp, 8
mov dword [0x94745c], 0
mov dword [0x947460], 0
jmp 0x68713b
mov dword [0x94745c], 0x5265c0
call fcn.00533cd9
mov dword [0x947460], eax
mov dword [0x947464], 1
jmp 0x68713b
mov dword [0x94745c], 0x36ee80
call fcn.00533cd9
mov dword [0x947460], eax
mov dword [0x947464], 1
jmp 0x68713b
mov dword [0x94745c], 0xdbba0
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x68713b
mov dword [0x94745c], 0x927c0
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x68713b
mov dword [0x94745c], 0x36ee80
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x68713b
mov dword [0x94745c], 0x36ee80
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x68713b
mov dword [0x94745c], 0x5265c0
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x68713b
mov dword [0x94745c], 0x927c0
call fcn.00533cd9
mov dword [0x947460], eax
jmp 0x6871c3
push 0
push 0
call fcn.0068a120
add esp, 8
test eax, eax
je 0x6871c3
mov eax, 1
test eax, eax
je 0x68716f
push str.ww
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534d73
add esp, 0xc
mov esi, esp
push 0x4b
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
push str.byM
push 5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534d73
add esp, 0xc
mov esi, esp
push 0xaf
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005351dd
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__serverpaula.c
mov eax, dword [0x818b28]
add eax, 0x1fa
push eax
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00533a0e
add esp, 0x10
test eax, eax
je 0x68766e
cmp dword [0x947468], 0
je 0x68720c
call fcn.00533cd9
sub eax, dword [0x94746c]
cmp eax, dword [0x947468]
jbe 0x68766e
mov eax, 1
test eax, eax
je 0x687273
push str.ww
push 5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534d73
add esp, 0xc
push str.byM
push 5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00534d73
add esp, 0xc
mov esi, esp
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, esp
call fcn.00535fca
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005351dd
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 0
jmp 0x68766e
cmp dword [0x947470], 0
je 0x68729a
push str.PaulaConfig.cfg
mov eax, dword [ebp + 8]
push eax
call fcn.00534b0c
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [0x947470], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x206c]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
add eax, 0x159c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
add eax, 0x189c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
mov dword [0x818aec], 0
cmp dword [0x818aec], 0
je 0x6873e5
mov byte [ebp - 0x7a0], 0
push 0x103
push 0
lea eax, [ebp - 0x79f]
push eax
call fcn.00533469
add esp, 0xc
push 0
push 0
call fcn.005323f7
add esp, 8
push eax
push str._sSA7Debug_TelNetDebug.txt
push 0x104
lea eax, [ebp - 0x7a0]
push eax
call fcn.00535be2
add esp, 0x10
lea eax, [ebp - 0x7a0]
push eax
call fcn.00535769
add esp, 4
test eax, eax
jne 0x6873e5
xor eax, eax
mov word [ebp - 0x7b8], ax
xor eax, eax
mov dword [ebp - 0x7b6], eax
mov dword [ebp - 0x7b2], eax
mov dword [ebp - 0x7ae], eax
mov word [ebp - 0x7aa], ax
mov eax, dword [0x818b28]
add eax, 0x223
push eax
push str.e:userskerrydocuments_visual_studio_2010projectspaula__butchered__serverpaula.c
lea ecx, [ebp - 0x7b8]
push ecx
call fcn.00532d7f
add esp, 0xc
movzx eax, word [ebp - 0x7ac]
push eax
movzx ecx, word [ebp - 0x7ae]
push ecx
movzx edx, word [ebp - 0x7b0]
push edx
movzx eax, word [ebp - 0x7b2]
push eax
movzx ecx, word [ebp - 0x7b6]
push ecx
movzx edx, word [ebp - 0x7b8]
push edx
push 0
push 0
call fcn.005323f7
add esp, 8
push eax
push str._s_04d__02d__02d___02d__02d__02d_SA7Debug_TelNetDebug.txt
push 0x104
lea eax, [ebp - 0x7a0]
push eax
call fcn.00535be2
add esp, 0x28
lea eax, [ebp - 0x7a0]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.005343eb
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00532ff0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [0x818aec], 0
je 0x68741c
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005343eb
add esp, 8
mov dword [0x818aec], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 5
ja case.0x687438.3
mov ecx, dword [ebp - 0x8b0]
jmp dword [ecx*4 + 0x6877e0]
push 0
push 1
call fcn.0068be30
add esp, 8
push 1
call fcn.0068c050
add esp, 4
mov dword [ebp - 0x30], 1
mov dword [0x947468], 0
mov dword [0x94746c], 0
jmp 0x6875c3
push 0
call fcn.0068c050
add esp, 4
mov dword [0x947468], 0x1b7740
call fcn.00533cd9
mov dword [0x94746c], eax
mov dword [0x947470], 1
jmp 0x6875c3
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x6874b8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
movsx edx, byte [ecx]
test edx, edx
jne 0x6874c6
push 1
push 0
call fcn.0068be30
add esp, 8
jmp 0x6874d2
push 0
push 0
call fcn.0068be30
add esp, 8
mov eax, dword [0x947474]
add eax, 1
mov dword [0x947474], eax
cmp dword [0x947474], 1
jne 0x6874f2
push 0
call fcn.00534553
add esp, 4
mov dword [0x947468], 0x1b7740
call fcn.00533cd9
mov dword [0x94746c], eax
mov dword [0x947470], 1
jmp 0x6875c3
mov dword [0x947468], 0x1b7740
call fcn.00533cd9
mov dword [0x94746c], eax
mov dword [0x947470], 1
jmp 0x6875c3
mov eax, dword [0x947478]
mov ecx, dword [0x947478]
add ecx, 1
mov dword [0x947478], ecx
cmp eax, 2
jle 0x68755d
mov dword [ebp - 0x8b0], 1
jmp 0x687567
mov dword [ebp - 0x8b0], 0
cmp dword [ebp - 0x8b0], 0
je 0x6875c3
cmp dword [0x947478], 5
jg 0x687585
mov dword [0x947468], 0x493e0
jmp 0x6875b9
cmp dword [0x947478], 0xa
jg 0x68759a
mov dword [0x947468], 0x927c0
jmp 0x6875b9
cmp dword [0x947478], 0xf
jg 0x6875af
mov dword [0x947468], 0x1b7740
jmp 0x6875b9
mov dword [0x947468], 0x36ee80
call fcn.00533cd9
mov dword [0x94746c], eax
call fcn.00533cd9
sub eax, dword [0x94747c]
cmp eax, 0x1b7740
jbe 0x6875f2
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00535fde
add esp, 8
call fcn.00533cd9
mov dword [0x94747c], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x2f90], 0
cmp dword [ebp - 0xc], 0
jne 0x687616
mov eax, dword [ebp + 0xc]
push eax
call fcn.0068a3b0
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x68761d
mov dword [ebp - 0x18], 0
cmp dword [0x94745c], 0
ja 0x68762f
cmp dword [0x947468], 0
jbe 0x68766e
push 0
push 1
mov eax, dword [ebp + 8]
add eax, 0x1094
push eax
call fcn.00532c26
add esp, 0xc
test eax, eax
je 0x68766e
cmp dword [0x94745c], 0
jbe 0x68765b
mov dword [0x94745c], 0xdbba00
cmp dword [0x947468], 0
jbe 0x68766e
mov dword [0x947468], 0x2255100
mov eax, dword [ebp - 0x30]
push edx
mov ecx, ebp
push eax
lea edx, [0x6876a0]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535561
add esp, 0x8b0
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret