Function at 0x40a690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67715f
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0
call fcn.004d0355
lea ecx, [ebp - 0x1cc]
mov byte [ebp - 4], 1
call fcn.004d0355
lea ecx, [ebp - 0x194]
mov byte [ebp - 4], 2
call fcn.004d0355
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0xf
mov byte [ebp - 0x1e4], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push 0
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
call fcn.004cd5c8
add esp, 0xc
test eax, eax
je 0x40a7b4
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x12c]
push eax
call fcn.004cd434
add esp, 0x1c
lea ecx, [ebp + 8]
push eax
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a7b4
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b620
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push dword [ebp - 0x25c]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push 1
push 0x7007a8
push 0
push esi
push eax
call fcn.0040bb70
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
je 0x40a877
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
cmp esi, edx
jb 0x40b625
sub esi, edx
lea eax, [ebp + 8]
or ecx, 0xffffffff
cmp esi, 0xffffffff
cmovb ecx, esi
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x12c]
add eax, edx
push eax
call fcn.00407210
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp + 8]
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a877
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a86d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b62a
push edx
push ecx
call fcn.0042e7b0
add esp, 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x254]
call fcn.004d0a0a
test al, al
jne 0x40a895
mov byte [ebp - 0x255], al
jmp 0x40b557
push 4
push str.data
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
lea eax, [ebp - 0x194]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x254]
call fcn.004d0812
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
mov byte [ebp - 0x255], al
cmp edx, 0x10
jb 0x40a929
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b62f
push edx
push ecx
call fcn.0042e7b0
mov al, byte [ebp - 0x255]
add esp, 8
test al, al
je 0x40b54c
push 0x104
call fcn.0042e7e1
push 0x104
mov esi, eax
push 0
push esi
call fcn.00507a50
add esp, 0x10
mov ecx, esi
call fcn.0040b680
mov dword [edi + 0x68], eax
lea ecx, [ebp - 0x12c]
push 3
push 0x70076c
mov dword [eax + 0x30], 0
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
mov dword [eax + 0xd0], 0
call fcn.00407210
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0x30
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d07be
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40a9f3
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b634
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 8
push str.filename
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0x34
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40aa7b
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b639
push edx
push ecx
call fcn.0042e7b0
add esp, 8
mov eax, dword [edi + 0x68]
cmp dword [eax + 0x44], 0
ja 0x40ab10
push 9
push str.file_name
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0x34
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ab10
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b63e
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 8
push str.fullname
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0x4c
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ab98
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b643
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 8
push str.softtype
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0x88
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ac22
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b648
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 4
push str.size
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0xa0
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40acac
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40aca2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b64d
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 4
push str.type
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0xd0
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d07be
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ad36
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ad2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b652
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 3
push 0x7007f4
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x194]
mov eax, dword [edi + 0x68]
add eax, 0xd4
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40adc0
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40adb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b657
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 7
push str.downurl
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x194]
call fcn.004d0812
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40ae48
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b65c
push edx
push ecx
call fcn.0042e7b0
add esp, 8
lea ecx, [ebp - 0x1cc]
call fcn.004d09de
lea ecx, [ebp - 0x1cc]
test al, al
je 0x40afce
xor esi, esi
mov dword [ebp - 0x25c], esi
call fcn.004d09bf
test eax, eax
jle 0x40b0a9
nop word [eax + eax]
push esi
lea ecx, [ebp - 0x1cc]
call fcn.004d0432
push eax
lea ecx, [ebp - 0x21c]
call fcn.004d02c2
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
call fcn.004d09f8
lea ecx, [ebp - 0x21c]
test al, al
je 0x40aebf
mov byte [ebp - 4], 5
call fcn.004d040b
jmp 0x40afaf
lea eax, [ebp - 0x12c]
push eax
call fcn.004d0bdb
push eax
lea ecx, [ebp - 0x144]
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40af11
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40af07
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b620
push edx
push ecx
call fcn.0042e7b0
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x264], esp
push 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x700730
mov byte [ecx], 0
call fcn.00407210
sub esp, 0x18
mov byte [ebp - 4], 0x11
mov ecx, esp
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x700754
mov byte [ecx], 0
call fcn.00407210
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x10
push eax
call fcn.004cd657
mov esi, dword [edi + 0x68]
lea ecx, [ebp - 0x144]
add esp, 0x34
mov eax, dword [esi + 0x68]
push ecx
cmp dword [esi + 0x6c], eax
je 0x40af91
mov ecx, eax
call fcn.00406d70
add dword [esi + 0x68], 0x18
jmp 0x40af9a
push eax
lea ecx, [esi + 0x64]
call fcn.0040b9c0
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 5
call fcn.004d040b
mov esi, dword [ebp - 0x25c]
inc esi
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 0x25c], esi
call fcn.004d09bf
cmp esi, eax
jl 0x40ae80
jmp 0x40b0a9
lea eax, [ebp - 0x12c]
push eax
call fcn.004d0bdb
push eax
lea ecx, [ebp - 0x144]
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40b020
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b016
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b661
push edx
push ecx
call fcn.0042e7b0
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x260], esp
push 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x700730
mov byte [ecx], 0
call fcn.00407210
sub esp, 0x18
mov byte [ebp - 4], 0x12
mov ecx, esp
push 1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x700754
mov byte [ecx], 0
call fcn.00407210
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 5
push eax
call fcn.004cd657
mov esi, dword [edi + 0x68]
lea ecx, [ebp - 0x144]
add esp, 0x34
mov eax, dword [esi + 0x68]
push ecx
cmp dword [esi + 0x6c], eax
je 0x40b0a0
mov ecx, eax
call fcn.00406d70
add dword [esi + 0x68], 0x18
jmp 0x40b0a9
push eax
lea ecx, [esi + 0x64]
call fcn.0040b9c0
push 0xb
push str.description
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xf
mov byte [ebp - 0x12c], 0
call fcn.00407210
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x194]
call fcn.004d08c3
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40b131
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b666
push edx
push ecx
call fcn.0042e7b0
add esp, 8
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push 0
push dword [ebp - 0x134]
cmovae eax, dword [ebp - 0x144]
push eax
call fcn.004cd5c8
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x144]
je 0x40b1ee
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004ce4a9
mov esi, eax
add esp, 8
mov eax, dword [edi + 0x68]
add eax, 0x70
mov dword [ebp - 0x25c], eax
cmp eax, esi
je 0x40b1b6
mov ecx, eax
call fcn.00404d80
movups xmm0, xmmword [esi]
mov eax, dword [ebp - 0x25c]
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x40b22e
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b224
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
jmp 0x40b224
push 0x3a8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x12c]
push eax
call fcn.004cdc49
mov esi, eax
add esp, 0x20
mov eax, dword [edi + 0x68]
add eax, 0x70
mov dword [ebp - 0x25c], eax
cmp eax, esi
je 0x40b1b6
jmp 0x40b186
push edx
push ecx
call fcn.0042e7b0
add esp, 8
mov eax, dword [edi + 0x68]
add eax, 0x34
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b23f
mov eax, dword [eax]
push 0
push ecx
push eax
call fcn.004cd5c8
add esp, 0xc
test eax, eax
je 0x40b2b5
mov eax, dword [edi + 0x68]
sub esp, 0x18
add eax, 0x34
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x12c]
push eax
call fcn.004cd434
mov ecx, dword [edi + 0x68]
add esp, 0x1c
add ecx, 0x34
push eax
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40b2b5
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
mov eax, dword [edi + 0x68]
add eax, 0x4c
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40b2c6
mov eax, dword [eax]
push 0
push ecx
push eax
call fcn.004cd5c8
add esp, 0xc
test eax, eax
je 0x40b33c
mov eax, dword [edi + 0x68]
sub esp, 0x18
add eax, 0x4c
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x12c]
push eax
call fcn.004cd434
mov ecx, dword [edi + 0x68]
add esp, 0x1c
add ecx, 0x4c
push eax
call fcn.00406c50
mov edx, dword [ebp - 0x118]
cmp edx, 0x10
jb 0x40b33c
mov ecx, dword [ebp - 0x12c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b332
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00507a50
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [edi + 0x68]
lea edx, [ebp - 0x114]
add ecx, 0x18
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40b373
sub edx, esi
lea eax, [ebp - 0x114]
push edx
push eax
call fcn.00407210
mov eax, dword [edi + 0x68]
add eax, 0xd4
cmp dword [eax + 0x14], 0x10
jb 0x40b399
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov ecx, dword [edi + 0x68]
push eax
add ecx, 0x18
call fcn.00406b40
mov eax, dword [edi + 0x68]
push 0
push 0
push 0
push 0
push 0x3a8
sub esp, 0x18
add eax, 0x18
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x15c]
push eax
call fcn.004cdc49
add esp, 0x20
mov byte [ebp - 4], 0x14
cmp dword [eax + 0x14], 8
jb 0x40b3e5
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x68]
push 0x3a8
sub esp, 0x18
add eax, 0xd4
mov ecx, esp
push eax
call fcn.00406d70
lea eax, [ebp - 0x12c]
push eax
call fcn.004cdc49
add esp, 0x20
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 8
jb 0x40b419
mov eax, dword [eax]
push eax
call fcn.004dfde0
add esp, 0x18
mov byte [ebp - 4], 0x14
mov edx, dword [ebp - 0x118]
test al, al
sete byte [ebp - 0x255]
cmp edx, 8
jb 0x40b46f
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b465
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
xor eax, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
cmp edx, 8
jb 0x40b4d0
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b4c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
cmp byte [ebp - 0x255], 0
je 0x40b4f1
mov eax, dword [edi + 0x68]
add eax, 0x18
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x40b4ee
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x194]
call fcn.004d0bdb
mov ecx, dword [edi + 0x68]
push eax
add ecx, 0xec
call fcn.00406c50
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x40b54c
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b542
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
cmp dword [edi + 0x68], 0
setne byte [ebp - 0x255]
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x40b591
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b587
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
mov byte [ebp - 0x144], 0
call fcn.004d040b
lea ecx, [ebp - 0x1cc]
call fcn.004d040b
lea ecx, [ebp - 0x254]
call fcn.004d040b
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40b5fd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b5f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b66b
push edx
push ecx
call fcn.0042e7b0
add esp, 8
mov al, byte [ebp - 0x255]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e165
mov esp, ebp
pop ebp
ret 0x18
call fcn.0050d58e
call fcn.00405020
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
call fcn.0050d58e
int3