Function at 0x403d70
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424c36
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x548
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.0040a7c0
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x403dfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWindowsDirectoryW_failed_with_error__u_n
call fcn.00401120
add esp, 8
jmp 0x404cdb
xorps xmm0, xmm0
mov dword [ebp - 0x280], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x27c], 0
movups xmmword [ebp - 0x290], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e21
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x290]
call fcn.00405d00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x27c]
mov eax, ecx
mov edi, dword [ebp - 0x280]
sub eax, edi
cmp eax, 4
jb 0x403e94
cmp ecx, 8
lea esi, [ebp - 0x290]
lea eax, [edi + 4]
cmovae esi, dword [ebp - 0x290]
push 8
mov dword [ebp - 0x280], eax
push str.INF
lea eax, [esi + edi*2]
push eax
call fcn.0040a240
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 8], ax
jmp 0x403eae
push 4
push str.INF
push dword [ebp - 0x550]
lea ecx, [ebp - 0x290]
push 4
call fcn.00405b70
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
push dword [ebp - 0x280]
cmovae eax, dword [ebp - 0x290]
lea ecx, [ebp - 0x2c0]
xorps xmm0, xmm0
mov dword [ebp - 0x2b0], 0
push eax
movups xmmword [ebp - 0x2c0], xmm0
mov dword [ebp - 0x2ac], 0
call fcn.00405d00
cmp dword [ebp - 0x2ac], 8
lea ecx, [ebp - 0x260]
push 0xffffffffffffffff
push 3
lea eax, [ebp - 0x2c0]
mov dword [ebp - 0x270], 0
cmovae eax, dword [ebp - 0x2c0]
push ecx
push eax
call fcn.0040832d
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x268], eax
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.00403380
mov eax, dword [ebp - 0x270]
mov esi, dword [ebp - 0x268]
test eax, eax
je 0x403f58
xor esi, esi
cmp eax, 1
sete byte [ebp - 0x549]
jmp 0x403f5f
mov byte [ebp - 0x549], 1
mov ecx, dword [ebp - 0x2ac]
cmp ecx, 8
jb 0x403f9f
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cfb
push ecx
push edx
call fcn.00408d8f
add esp, 8
cmp byte [ebp - 0x549], 0
je 0x403fb8
push esi
push str.std::filesystem::exists_failed_with_error__u_n
call fcn.00401120
jmp 0x4047ed
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movq qword [ebp - 0x234], xmm0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x290]
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x258]
push dword [ebp - 0x280]
cmovae eax, dword [ebp - 0x290]
push eax
movups xmmword [ebp - 0x258], xmm0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.00405d00
xor esi, esi
xor edi, edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x2c4], esi
push esi
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x548]
call fcn.004034a0
mov byte [ebp - 4], 5
cmp byte [ebp - 0x2dc], 0
je 0x4040c2
push 0x50
call fcn.00408d5a
mov esi, eax
add esp, 4
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x550], esi
mov byte [ebp - 4], 6
lea eax, [ebp - 0x548]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], edi
lea edi, [esi + 0x10]
push ecx
push eax
mov ecx, edi
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj2_struct_std::filesystem::_Dir_enum_impl_.0
call fcn.004037d0
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], esi
mov byte [ebp - 4], 4
push dword [ebp - 0x530]
call fcn.004082d6
mov ecx, dword [ebp - 0x534]
cmp ecx, 8
jb 0x404111
mov edx, dword [ebp - 0x548]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404107
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d00
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x244]
cmp ecx, 8
jb 0x404155
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40414b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d05
push ecx
push edx
call fcn.00408d8f
add esp, 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x23c], xmm0
test esi, esi
je 0x404168
lock inc dword [esi + 4]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], esi
test esi, esi
je 0x40417c
lock inc dword [esi + 4]
movlpd qword [ebp - 0x2d0], xmm0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0
test esi, esi
je 0x4041bd
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4041bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4041bd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xa
test edi, edi
je 0x4046e8
mov ecx, dword [edi + 0x1c]
mov eax, ecx
and eax, 3
mov dword [ebp - 0x26c], 0
cmp al, 3
jne 0x4041ee
push edi
mov dword [ebp - 0x264], 0
push 0
jmp 0x404224
test cl, 2
je 0x4041f8
mov ecx, dword [edi + 0x10]
jmp 0x4041fb
or ecx, 0xffffffff
cmp dword [edi + 0x34], 8
lea eax, [edi + 0x20]
jb 0x404206
mov eax, dword [eax]
push ecx
push 3
lea ecx, [ebp - 0x260]
push ecx
push eax
call fcn.0040832d
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x264], eax
push ecx
push eax
lea ecx, [ebp - 0x26c]
call fcn.00403380
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x26c]
test edx, edx
je 0x40424d
cmp eax, 1
je 0x40424d
cmp eax, 9
jne 0x404d0a
cmp eax, 2
jne 0x404480
cmp dword [edi + 0x34], 8
lea ecx, [edi + 0x20]
jb 0x404262
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x30]
lea esi, [ecx + eax*2]
mov edx, esi
call fcn.004023c0
push 0x3a
push esi
mov esi, eax
mov dword [ebp - 0x550], eax
push esi
call fcn.00408750
mov edx, eax
cmp esi, edx
je 0x4042bd
lea ecx, [edx - 2]
cmp esi, ecx
je 0x4042bd
cmp word [ecx], 0x2e
jne 0x4042a3
lea eax, [ecx - 2]
cmp esi, eax
jne 0x4042bf
cmp word [ecx - 2], 0x2e
jne 0x4042bf
jmp 0x4042bd
sub ecx, 2
cmp esi, ecx
je 0x4042bd
nop word [eax + eax]
cmp word [ecx], 0x2e
je 0x4042bf
sub ecx, 2
cmp esi, ecx
jne 0x4042b0
mov ecx, edx
sub edx, ecx
mov dword [ebp - 0x2b0], 0
sar edx, 1
xorps xmm0, xmm0
push edx
push ecx
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2ac], 0
movups xmmword [ebp - 0x2c0], xmm0
call fcn.00405d00
mov byte [ebp - 4], 0xb
lea ecx, [edi + 0x20]
cmp dword [edi + 0x34], 8
jb 0x4042fe
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x30]
lea esi, [ecx + eax*2]
mov edx, esi
call fcn.004023c0
sub esi, eax
mov dword [ebp - 0x298], 0
sar esi, 1
lea ecx, [ebp - 0x2a8]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x294], 0
push eax
movups xmmword [ebp - 0x2a8], xmm0
call fcn.00405d00
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x258]
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
push str..log
movups xmmword [ebp - 0x258], xmm0
mov dword [ebp - 0x244], 0
call fcn.00405d00
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
push dword [ebp - 0x248]
mov esi, dword [ebp - 0x258]
lea ecx, [ebp - 0x2c0]
cmovae eax, esi
setae byte [ebp - 0x549]
push eax
call fcn.00402720
cmp byte [ebp - 0x549], 0
mov dword [ebp - 0x550], eax
je 0x4043e7
mov ecx, dword [ebp - 0x244]
mov eax, esi
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4043d7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d13
push ecx
push esi
call fcn.00408d8f
mov eax, dword [ebp - 0x550]
add esp, 8
test eax, eax
je 0x4044d9
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x294]
cmp ecx, 8
jb 0x404433
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404429
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2ac]
cmp ecx, 8
jb 0x404480
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40446d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
push ecx
push edx
call fcn.00408d8f
add esp, 8
nop word [eax + eax]
lea eax, [ebp - 0x528]
push eax
push dword [edi + 0x38]
call fcn.004082b5
cmp eax, 0x12
je 0x40469c
test eax, eax
jne 0x404d22
cmp word [ebp - 0x4fc], 0x2e
jne 0x4044c6
mov ax, word [ebp - 0x4fa]
test ax, ax
je 0x404480
cmp ax, 0x2e
jne 0x4044c6
cmp word [ebp - 0x4f8], 0
je 0x404480
lea eax, [ebp - 0x528]
mov ecx, edi
push eax
call fcn.00403660
jmp 0x4041c1
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x258]
call fcn.00405010
cmp dword [ebp - 0x244], 8
lea ecx, [ebp - 0x258]
mov edx, dword [ebp - 0x248]
push 0x10
push str.setupapi.offline
push ecx
jb 0x40455b
mov esi, dword [ebp - 0x258]
mov ecx, esi
call fcn.00405940
mov dword [ebp - 0x550], eax
add esp, 0xc
mov eax, dword [ebp - 0x244]
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x404549
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d18
push ecx
push esi
call fcn.00408d8f
mov eax, dword [ebp - 0x550]
add esp, 8
jmp 0x404563
call fcn.00405940
add esp, 0xc
test eax, eax
jne 0x4043ef
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x258]
call fcn.00405010
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4045ba
movups xmm0, xmmword [ebp - 0x258]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x248]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ebp - 0x230], 0x18
mov word [ebp - 0x258], ax
jmp 0x4045d3
lea ecx, [ebp - 0x258]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004064e0
mov ecx, dword [ebp - 0x244]
mov byte [ebp - 4], 0xc
cmp ecx, 8
jb 0x404611
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404607
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x294]
cmp ecx, 8
jb 0x404655
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40464b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x2ac]
cmp ecx, 8
jb 0x404480
mov edx, dword [ebp - 0x2c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40446d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d1d
jmp 0x40446d
mov esi, dword [ebp - 0x238]
xor edi, edi
xor ecx, ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], ecx
test esi, esi
je 0x4041c1
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4041c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4041c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x4041c1
mov ecx, dword [ebp - 0x238]
or edi, 0xffffffff
test ecx, ecx
je 0x404716
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x404716
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x238]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x404716
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x554]
test esi, esi
je 0x40473e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40473e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40473e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x230]
mov edi, dword [ebp - 0x234]
mov dword [ebp - 0x550], eax
cmp edi, eax
jne 0x404840
push str.No_log_files_found_n
call fcn.00401120
mov ecx, dword [ebp - 0x234]
add esp, 4
test ecx, ecx
je 0x4047f0
mov edx, dword [ebp - 0x230]
push ecx
call fcn.00406020
mov ecx, dword [ebp - 0x22c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x234]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4047c8
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d29
push ecx
push esi
call fcn.00408d8f
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
add esp, 8
mov ecx, dword [ebp - 0x27c]
cmp ecx, 8
jb 0x404cdb
mov edx, dword [ebp - 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40482a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d29
push ecx
push edx
call fcn.00408d8f
add esp, 8
jmp 0x404cdb
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40484a
mov eax, dword [edi]
push dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x248], 0
push eax
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x244], 0
movups xmmword [ebp - 0x258], xmm0
call fcn.00405d00
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x23c]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0x431a70
call fcn.00403980
cmp dword [ebp - 0x23c], 0
mov byte [ebp - 0x549], al
jne 0x404d33
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x244]
cmp ecx, 8
jb 0x4048fd
mov edx, dword [ebp - 0x258]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4048ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cfb
push ecx
push edx
call fcn.00408d8f
mov al, byte [ebp - 0x549]
add esp, 8
test al, al
jne 0x40491b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40490b
mov eax, dword [edi]
push eax
push str.Log_file__ws_does_not_exist_n
call fcn.00401120
jmp 0x404a67
mov edx, edi
lea ecx, [ebp - 0x278]
call fcn.00403a10
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x268], 0
jne 0x40494f
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40493f
mov eax, dword [edi]
push eax
push str.Log_file__ws_read_failed_n
call fcn.00401120
jmp 0x404a23
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x298], 0
push str.D:workmount_
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x294], 0
movups xmmword [ebp - 0x2a8], xmm0
call fcn.00405d00
cmp dword [ebp - 0x294], 8
lea edx, [ebp - 0x2a8]
push dword [ebp - 0x298]
cmovae edx, dword [ebp - 0x2a8]
lea ecx, [ebp - 0x278]
setae byte [ebp - 0x549]
cmp dword [ebp - 0x264], 8
push edx
cmovae ecx, dword [ebp - 0x278]
mov edx, dword [ebp - 0x268]
push ecx
call fcn.00405940
add esp, 0xc
lea ecx, [ebp - 0x2a8]
cmp byte [ebp - 0x549], 0
cmovne ecx, dword [ebp - 0x2a8]
xor edx, edx
mov word [ecx], dx
mov ecx, dword [ebp - 0x294]
cmp eax, 0xffffffff
jne 0x404b44
cmp ecx, 8
jb 0x404a26
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404a1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
cmp ecx, 8
jb 0x404a6a
mov edx, dword [ebp - 0x278]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404a60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push edx
call fcn.00408d8f
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0x550]
jne 0x404840
mov edi, dword [ebp - 0x234]
mov eax, dword [ebp - 0x230]
test edi, edi
je 0x404b01
push ecx
mov edx, eax
mov ecx, edi
call fcn.00406020
mov ecx, dword [ebp - 0x22c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x234]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404ad9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d29
push ecx
push esi
call fcn.00408d8f
add esp, 8
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x27c]
cmp ecx, 8
jb 0x404cdb
mov edx, dword [ebp - 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40482a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d29
jmp 0x40482a
cmp ecx, 8
jb 0x404b7e
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404b74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov ecx, dword [ebp - 0x264]
cmp ecx, 8
jb 0x404bbe
mov edx, dword [ebp - 0x278]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404bb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov ecx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
test ecx, ecx
je 0x404c5f
mov edx, dword [ebp - 0x230]
push ecx
call fcn.00406020
mov ecx, dword [ebp - 0x22c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x234]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404c37
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push esi
call fcn.00408d8f
add esp, 8
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov ecx, dword [ebp - 0x27c]
cmp ecx, 8
jb 0x404c9f
mov edx, dword [ebp - 0x290]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404c95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404d2e
push ecx
push edx
call fcn.00408d8f
add esp, 8
mov al, 1
jmp 0x404cdd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00408d47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040f6f2
call fcn.0040f6f2
call fcn.0040f6f2
lea eax, [edi + 0x20]
push eax
call fcn.00403270
call fcn.0040f6f2
call fcn.0040f6f2
call fcn.0040f6f2
mov edx, eax
call fcn.00403130
call fcn.0040f6f2
call fcn.0040f6f2
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x23c]
call fcn.00403300
int3