Function at 0x4390c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x104
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x150]
push 0
push eax
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x38], 0
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004e69c0
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
push edi
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 8], 0
call fcn.004a73a0
add esp, 0x1c
test eax, eax
je 0x439172
call fcn.0045dd90
mov edi, eax
push edi
call fcn.004a73a0
add esp, 4
test eax, eax
je 0x439172
push 0x51c308
call fcn.00424a90
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x150]
push eax
push edi
call fcn.00462440
add esp, 0xc
test eax, eax
jne 0x43919a
lea eax, [ebp - 0x150]
push eax
call fcn.004a55e0
add esp, 4
lea eax, [ebp - 0x150]
push esi
push eax
call fcn.004a8810
call fcn.0045dd80
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a55e0
add esp, 8
cmp esi, 0x64
jge 0x4391df
push str.:4:AutoDetectRealStoreID___FAILED:_GetStoreNumber___has_not_yet_been_initialized.
call fcn.00424a90
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push 0xa
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.004571f0
push 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x20], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
push eax
movq qword [ebp - 0x34], xmm0
call fcn.004a9a20
push 0xc
lea eax, [ebp - 0x25]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004a9a20
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x25], 0
push eax
mov byte [ebp - 0x31], 0
call fcn.004a55e0
push edi
call fcn.0046caa0
mov edi, eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push str.SELECT_ALPHA_DC_CODE_FROM_DISTRIBUTION_CENTER_WHERE_DIVISION_CODE_s_AND_DC_CODE_s
push edi
call fcn.0046d380
add esp, 0x3c
test eax, eax
je 0x43927a
push 1
push 0
push 0x15
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0046d4c0
add esp, 0x14
test eax, eax
jne 0x43927a
lea eax, [ebp - 0x1c]
push eax
call fcn.004a55e0
add esp, 4
push edi
call fcn.0046ce60
lea eax, [ebp - 0x1c]
push eax
call fcn.004a73a0
add esp, 8
test eax, eax
je 0x4392a5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push str.:4:AutoDetectRealStoreID___EAP:_ExecuteODBCFormat___FAILED_for__s__s.
call fcn.00424a90
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.004a8810
lea eax, [ebp - 0x1c]
push eax
call fcn.004a73a0
add esp, 8
test eax, eax
je case.default.0x439624
cmp esi, 0xf423f
jle 0x4392e4
nop word [eax + eax]
mov eax, 0xcccccccd
mul esi
mov esi, edx
shr esi, 3
cmp esi, 0xf423f
jg 0x4392d0
cmp esi, 0x30d41
jg 0x43935e
je 0x439354
add esi, 0xfffe795f
cmp esi, 8
ja case.default.0x439624
jmp dword [esi*4 + 0x43990c]
mov eax, 0x51c528
jmp 0x43964c
mov eax, 0x51c52c
jmp 0x43964c
mov eax, 0x51c530
jmp 0x43964c
mov eax, 0x51c534
jmp 0x43964c
mov eax, 0x51c538
jmp 0x43964c
mov eax, 0x51c53c
jmp 0x43964c
mov eax, 0x51c540
jmp 0x43964c
mov eax, 0x51c544
jmp 0x43964c
mov eax, 0x51c524
jmp 0x43964c
cmp esi, 0x61a81
jg 0x4393c4
je 0x4393ba
add esi, 0xfffcf2be
cmp esi, 6
ja case.default.0x439624
jmp dword [esi*4 + 0x439930]
mov eax, 0x51c50c
jmp 0x43964c
mov eax, 0x51c510
jmp 0x43964c
mov eax, 0x51c514
jmp 0x43964c
mov eax, 0x51c518
jmp 0x43964c
mov eax, 0x51c51c
jmp 0x43964c
mov eax, 0x51c520
jmp 0x43964c
mov eax, 0x51c508
jmp 0x43964c
cmp esi, 0x7a121
jg 0x439434
je 0x43942a
add esi, 0xfff9e57e
cmp esi, 7
ja case.default.0x439624
jmp dword [esi*4 + 0x43994c]
mov eax, 0x51c4ec
jmp 0x43964c
mov eax, 0x51c4f0
jmp 0x43964c
mov eax, 0x51c4f4
jmp 0x43964c
mov eax, 0x51c4f8
jmp 0x43964c
mov eax, 0x51c4fc
jmp 0x43964c
mov eax, 0x51c500
jmp 0x43964c
mov eax, 0x51c504
jmp 0x43964c
mov eax, 0x51c4e8
jmp 0x43964c
cmp esi, 0x927c1
jg 0x43949a
je 0x439490
add esi, 0xfff85ede
cmp esi, 6
ja case.default.0x439624
jmp dword [esi*4 + 0x43996c]
mov eax, 0x51c4d4
jmp 0x43964c
mov eax, 0x51c4d8
jmp 0x43964c
mov eax, 0x517cc4
jmp 0x43964c
mov eax, 0x51c4dc
jmp 0x43964c
mov eax, 0x51c4e0
jmp 0x43964c
mov eax, 0x51c4e4
jmp 0x43964c
mov eax, 0x51c4d0
jmp 0x43964c
cmp esi, 0xaae61
jg 0x439500
je 0x4394f6
add esi, 0xfff6d83d
cmp esi, 5
ja case.default.0x439624
jmp dword [esi*4 + 0x439988]
mov eax, 0x51c4b8
jmp 0x43964c
mov eax, 0x51c4bc
jmp 0x43964c
mov eax, 0x51c4c0
jmp 0x43964c
mov eax, 0x51c4c4
jmp 0x43964c
mov eax, 0x51c4c8
jmp 0x43964c
mov eax, 0x51c4cc
jmp 0x43964c
mov eax, 0x51c4b4
jmp 0x43964c
cmp esi, 0xc3501
jg 0x439570
je 0x439566
add esi, 0xfff5519e
cmp esi, 6
ja case.default.0x439624
jmp dword [esi*4 + 0x4399a0]
mov eax, 0x51c498
jmp 0x43964c
mov eax, 0x51c49c
jmp 0x43964c
mov eax, 0x51c4a0
jmp 0x43964c
mov eax, 0x51c4a4
jmp 0x43964c
mov eax, 0x51c4a8
jmp 0x43964c
mov eax, 0x51c4ac
jmp 0x43964c
mov eax, 0x51c4b0
jmp 0x43964c
mov eax, 0x51c494
jmp 0x43964c
cmp esi, 0xdbba1
jg 0x4395cc
je 0x4395c2
add esi, 0xfff3cafe
cmp esi, 4
ja case.default.0x439624
jmp dword [esi*4 + 0x4399bc]
mov eax, 0x51c480
jmp 0x43964c
mov eax, 0x51c484
jmp 0x43964c
mov eax, 0x51c488
jmp 0x43964c
mov eax, 0x51c48c
jmp 0x43964c
mov eax, 0x51c490
jmp 0x43964c
mov eax, 0x51c47c
jmp 0x43964c
cmp esi, 0xf1b31
jg 0x439619
je 0x439612
add esi, 0xfff2445e
cmp esi, 6
ja case.default.0x439624
jmp dword [esi*4 + 0x4399d0]
mov eax, 0x51c464
jmp 0x43964c
mov eax, 0x51c468
jmp 0x43964c
mov eax, 0x51c46c
jmp 0x43964c
mov eax, 0x51c470
jmp 0x43964c
mov eax, 0x51c474
jmp 0x43964c
mov eax, 0x51c478
jmp 0x43964c
mov eax, 0x51c460
jmp 0x43964c
add esi, 0xfff0e4ce
cmp esi, 4
ja case.default.0x439624
jmp dword [esi*4 + 0x4399ec]
mov eax, 0x51c450
jmp 0x43964c
mov eax, 0x51c454
jmp 0x43964c
mov eax, 0x5101b4
jmp 0x43964c
mov eax, 0x51c458
jmp 0x43964c
mov eax, 0x51c45c
push 0x16
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004a9a20
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
je 0x4396ee
lea eax, [ebp - 0x150]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
je 0x4396a2
push str.:4:AutoDetectRealStoreID___FAILED:_The_dns_name_could_not_be_determined_nor_T2_db_accessed.
call fcn.00424a90
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x150]
xor esi, esi
call fcn.004a7440
add esp, 4
test eax, eax
jne 0x4396e9
cmp esi, 0x15
jae 0x4396e0
mov al, byte [ebp + esi - 0x150]
test al, al
je 0x4396e9
mov byte [ebp + esi - 0x1c], al
inc esi
movzx eax, byte [ebp + esi - 0x150]
push eax
call fcn.004a7440
add esp, 4
test eax, eax
je 0x4396b6
cmp esi, 0x16
jae 0x439904
mov byte [ebp + esi - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.004a8810
lea eax, [ebp - 0x1c]
push eax
call fcn.004a73a0
add esp, 8
test eax, eax
je 0x439727
push str.:7:AutoDetectRealStoreID___FAILED:_Could_not_determine_Alpha_DC_Code.
call fcn.00424a90
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x150]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
je 0x439757
lea eax, [ebp - 0x1c]
push eax
push str._s000
lea eax, [ebp - 0x150]
push 0x104
push eax
call fcn.004a94b0
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
call fcn.004a55e0
lea ecx, [ebp - 0x150]
add esp, 4
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439770
sub ecx, edx
xor esi, esi
lea edi, [ecx - 1]
test edi, edi
js 0x4397a1
movzx eax, byte [ebp + edi - 0x150]
push eax
call fcn.004a7440
add esp, 4
test eax, eax
je 0x43979d
inc esi
sub edi, 1
jns 0x439782
test esi, esi
jg 0x4397be
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.004eeba8
add esp, 8
mov ecx, 3
test eax, eax
cmovne esi, ecx
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4397c4
sub ecx, edx
cmp esi, ecx
jle 0x4397f9
lea eax, [ebp - 0x4c]
push eax
push esi
push str.:7:AutoDetectRealStoreID___EAP:_Impossible:_iNumDigits___d__szCurrentStoreNum___s
call fcn.00424a90
lea esi, [ebp - 0x4c]
add esp, 0xc
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4397f0
sub esi, ecx
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439800
sub ecx, edx
lea eax, [ebp - 0x4c]
sub ecx, esi
add eax, ecx
push 0x104
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004a9a20
push 0x104
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004a7290
lea eax, [ebp - 0x254]
push 0x50eb54
push eax
call fcn.004e61d0
add esp, 0x24
test eax, eax
je 0x439865
lea eax, [ebp - 0x254]
push eax
push str.:7:AutoDetectRealStoreID___EAP:_BAD_White_space_in_store_name____s__has_been_fixed._
call fcn.00424a90
add esp, 8
lea eax, [ebp - 0x254]
push eax
call fcn.004a8810
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.004eeba8
add esp, 0xc
test eax, eax
jne 0x4398b2
test esi, esi
jg 0x4398a3
lea eax, [ebp - 0x150]
push eax
push str.:5:AutoDetectRealStoreID___FAILED:_Bad_DNS_lookup___s_
call fcn.00424a90
add esp, 8
lea eax, [ebp - 0x254]
push eax
call fcn.004a55e0
add esp, 4
mov edx, dword [ebp - 0x258]
test edx, edx
je 0x4398d3
lea ecx, [ebp - 0x150]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4398c6
test ebx, ebx
je 0x4398ee
lea ecx, [ebp - 0x254]
mov eax, ecx
sub ebx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x4398e1
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
call fcn.004e523e
nop dword [eax]
dec edx
xchg ebx, eax
inc ebx
add byte [ebx - 0x6a], bl
inc ebx
add byte [eax - 0x6d], al
inc ebx
add byte [esi], dh
xchg ebx, eax
inc ebx
add byte [ebx + edx*4], ch
inc ebx
add byte [edx], ah
xchg ebx, eax
inc ebx
add byte [eax], bl
xchg ebx, eax
inc ebx
add byte [esi], cl
xchg ebx, eax
inc ebx
add byte [ebx + edx*4], al
inc ebx
add byte [eax - 0x59ffbc6d], dh
xchg ebx, eax
inc ebx
add byte [ebx + edx*4 - 0x6c6dffbd], bl
inc ebx
add byte [ebx - 0x6a], bl
inc ebx
add byte [eax + 0x7e004393], cl
xchg ebx, eax
inc ebx
add byte [eax], ah
xchg esp, eax
inc ebx
add byte [esi], dl
xchg esp, eax
inc ebx
add byte [ebx - 0x6a], bl
inc ebx
add byte [esp + edx*4], cl
inc ebx
add byte [edx], al
xchg esp, eax
inc ebx
add al, bh
xchg ebx, eax
inc ebx
add dh, ch
xchg ebx, eax
inc ebx
add ah, ah
xchg ebx, eax
inc ebx
add byte [esi + 0x7c004394], al
xchg esp, eax
inc ebx
add byte [edx - 0x6c], dh
inc ebx
add byte [eax - 0x6c], ch
inc ebx
add byte [ebx - 0x6a], bl
inc ebx
add byte [esi - 0x6c], bl
inc ebx
add byte [esp + edx*4 + 0x43], dl
add ah, ch
xchg esp, eax
inc ebx
add dl, ah
xchg esp, eax
inc ebx
add al, bl
xchg esp, eax
inc ebx
add dh, cl
xchg esp, eax
inc ebx
add ah, al
xchg esp, eax
inc ebx
add byte [edx + 0x5c004394], bh
xchg ebp, eax
inc ebx
add byte [edx - 0x6b], dl
inc ebx
add byte [eax - 0x6b], cl
inc ebx
add byte [esi], bh
xchg ebp, eax
inc ebx
add byte [edx*4 - 0x6ad5ffbd], dh
inc ebx
add byte [eax], ah
xchg ebp, eax
inc ebx
add byte [eax - 0x51ffbc6b], bh
xchg ebp, eax
inc ebx
add byte [ebp + edx*4 - 0x6a65ffbd], ah
inc ebx
add byte [eax + 0xb004395], dl
xchg esi, eax
inc ebx
add byte [esi + edx*4], al
inc ebx
add byte [ebx - 0x6a], bl
inc ebx
add ch, bh
xchg ebp, eax
inc ebx
add dh, dh
xchg ebp, eax
inc ebx
add bh, ch
xchg ebp, eax
inc ebx
add al, ch
xchg ebp, eax
inc ebx
add byte [edi - 0x6a], al
inc ebx
add byte [eax - 0x6a], al
inc ebx
add byte [ecx], bh
xchg esi, eax
inc ebx
add byte [edx], dh
xchg esi, eax
inc ebx
add byte [ebx], ch
xchg esi, eax
inc ebx
add byte [ebp - 0x75], dl
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x581900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x24c]
push esi
mov esi, dword [ebp + 8]
push 0x104
push 0
push eax
mov dword [ebp - 0x6a4], esi
mov dword [ebp - 0x6a8], ebx
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.004e69c0
push 0x200
lea eax, [ebp - 0x44c]
push 0
push eax
call fcn.004e69c0
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x698], 0
push 0
push eax
call fcn.004e69c0
push esi
call fcn.004a55e0
add esp, 0x34
test ebx, ebx
je 0x439a8a
mov dword [ebx], 0
call fcn.004d9850
push 0x50
push esi
push 0
mov dword [ebp - 0x6a0], eax
call fcn.0046def0
add esp, 0xc
test eax, eax
jle 0x439ac1
test ebx, ebx
je 0x439aac
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
push str.:4:AutoDetectStoreNameAndNumber___FAILED:_TAMS_II_GetStoreNumberTAMSii___FAILED.
call fcn.00424a90
push str.C:UsersOfficeDocumentsVisual_StudioPAULAInstallation.c
push 0x141
push 0
call fcn.00458460
add esp, 0x10
mov dword [ebp - 0x694], 0
mov ebx, eax
mov dword [ebp - 0x69c], ebx
push edi
push 0x140
lea eax, [ebp - 0x690]
push 0
push eax
call fcn.004e69c0
push 0x104
lea eax, [ebp - 0x550]
push 0
push eax
call fcn.004e69c0
lea eax, [ebp - 0x24c]
push eax
call fcn.004a55e0
call fcn.0045dd90
push eax
call fcn.004a73a0
add esp, 0x20
test eax, eax
jne 0x439c51
call fcn.0045dd90
push eax
push str._s_reports
lea eax, [ebp - 0x550]
push 0x104
push eax
call fcn.004a94b0
push 0x100001
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x550]
push eax
call fcn.00429090
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x439c51
mov ebx, dword [ebp - 0x694]
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x690], 0x10
je 0x439c2a
lea eax, [ebp - 0x664]
push eax
call fcn.00456760
cdq
add esp, 4
xor eax, edx
sub eax, edx
cmp eax, 0xa
jle 0x439c2a
lea eax, [ebp - 0x664]
push eax
call fcn.00458340
push eax
call fcn.00457f30
add esp, 8
test eax, eax
jne 0x439bf7
lea eax, [ebp - 0x664]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439bd8
sub eax, edx
cmp eax, 4
jbe 0x439bf7
lea ecx, [ebp - 0x666]
add eax, ecx
push eax
call fcn.004efdaf
add esp, 4
lea eax, [ebp - 0x690]
push eax
push edi
call fcn.00429740
push 0x104
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004a9a20
add esp, 0x14
test ebx, ebx
jle 0x439c42
mov eax, esi
inc esi
cmp eax, ebx
jge 0x439c42
lea eax, [ebp - 0x690]
push eax
push edi
call fcn.00429780
add esp, 8
test eax, eax
jne 0x439b90
push edi
call fcn.00428eb0
mov ebx, dword [ebp - 0x69c]
add esp, 4
lea eax, [ebp - 0x24c]
push eax
call fcn.004a73a0
add esp, 4
test eax, eax
jne 0x439dc4
xor esi, esi
nop word [eax + eax]
cmp dword [ebp + 0x10], 0
je 0x439c83
push 0x50b02c
call fcn.0040f380
add esp, 4
test esi, esi
jne 0x439ca4
movq xmm0, qword [str.RPT077.PF.z]
mov eax, dword [0x51c77c]
movq qword [ebp - 0x148], xmm0
mov dword [ebp - 0x140], eax
jmp 0x439cb9
push esi
lea eax, [ebp - 0x148]
push str.RPT00_d.PF.z
push eax
call fcn.00404200
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.004a7ad0
push ebx
call fcn.00458c00
lea eax, [ebp - 0x148]
push eax
push ebx
call fcn.00459c30
add esp, 0x14
test eax, eax
je 0x439db8
push 0
push 0
push ebx
call fcn.00459b30
push ebx
lea eax, [ebp - 0x44c]
push 0x200
push eax
call fcn.004592f0
push ebx
lea eax, [ebp - 0x44c]
push 0x200
push eax
call fcn.004592f0
lea eax, [ebp - 0x44]
mov byte [ebp - 0x41d], 0
push eax
call fcn.004a55e0
lea eax, [ebp - 0x44c]
push 0x51c790
push eax
call fcn.004e61d0
add esp, 0x30
test eax, eax
je 0x439db8
lea eax, [ebp - 0x698]
push eax
lea eax, [ebp - 0x44c]
push 0x51c790
push eax
call fcn.004f7820
add esp, 0xc
test eax, eax
je 0x439db8
lea eax, [ebp - 0x44c]
push eax
call fcn.004efdaf
mov edi, eax
lea eax, [ebp - 0x698]
push eax
push 0x51c790
push 0
call fcn.004f7820
add esp, 0x10
test eax, eax
je 0x439db8
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004a9a20
lea eax, [ebp - 0x44]
push eax
call fcn.004a9190
lea ecx, [ebp - 0x44]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439da5
sub ecx, edx
cmp ecx, 4
jbe 0x439db8
cmp edi, 0x64
jg 0x439e15
inc esi
cmp esi, 3
jl 0x439c70
jmp 0x439dd1
push str.:5:AutoDetectStoreNameAndNumber___FAILED:_GetMostRecentReportPath___FAILED.
call fcn.00424a90
add esp, 4
call fcn.004d9850
sub eax, dword [ebp - 0x6a0]
cmp eax, 0x3a98
ja 0x439df9
mov esi, dword [ebp - 0x694]
inc esi
mov dword [ebp - 0x694], esi
cmp esi, 0xa
jl 0x439af2
push ebx
call fcn.00458740
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e50dc
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x6a4]
test edx, edx
je 0x439e33
lea ecx, [ebp - 0x44]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x439e26
mov eax, dword [ebp - 0x6a8]
test eax, eax
je 0x439e3f
mov dword [eax], edi
push ebx
call fcn.00458740
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004e50dc
mov esp, ebp
pop ebp
ret