Function at 0x410a50
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x38
mov eax, dword [0x42bafc]
push ebx
push ebp
xor ebx, ebx
or ebp, 0xffffffff
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
je 0x410bb6
mov eax, dword [0x42baf0]
mov edi, dword [eax]
add eax, 4
cmp edi, ebx
mov dword [0x42baf0], eax
je 0x410b39
push 2
push 5
call fcn.004039a0
add esp, 8
cmp eax, ebx
je 0x410ab1
cmp byte [eax], 0
je 0x410ab1
push ebx
push edi
call fcn.004040b0
push eax
call fcn.00401f20
add esp, 0xc
mov eax, dword [0x42baec]
mov esi, dword [0x42bae8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebx
fild qword [esp + 0x38]
fmul qword [0x4234f8]
fdiv st(1)
call fcn.0041bb84
mov edx, dword [edi + 0xa]
mov dword [esp + 0x3c], ebx
add esi, edx
mov ebp, eax
mov dword [esp + 0x38], esi
mov dword [0x42bae8], esi
fild qword [esp + 0x38]
fmul qword [0x4234f8]
fdiv st(1)
call fcn.0041bb84
push eax
push ebp
push edi
fstp st(0)
call fcn.00410650
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410b23
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push eax
call fcn.00401360
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov esi, dword [0x42bba8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, ebx
mov dword [0x42bbe4], ebx
mov dword [0x42bafc], ebx
je 0x410b73
push 1
push 5
call fcn.004039a0
add esp, 8
push eax
push 0x417
push esi
call edi
push eax
call fcn.00408130
add esp, 8
mov esi, dword [0x42bb20]
cmp esi, ebx
je 0x410b9b
push 3
push 5
call fcn.004039a0
add esp, 8
push eax
push 0x3e9
push esi
call edi
push eax
call fcn.00408130
add esp, 8
cmp dword [0x42b7b0], ebx
jne 0x410bad
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push ebx
call fcn.00401ea0
add esp, 4
mov ecx, dword [0x42b720]
mov dword [esp + 0x10], ebp
mov byte [ecx], 0
mov ecx, dword [0x42b7b4]
mov eax, dword [0x42b73c]
cmp ecx, ebx
je 0x410be4
lea eax, [eax + eax*4 + 5]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ecx
mov dword [esp + 0x18], eax
mov edi, 0x100
mov eax, dword [0x42b73c]
mov ecx, dword [0x42b7b4]
inc eax
cmp eax, ecx
mov dword [0x42b73c], eax
jae 0x411721
mov eax, dword [0x42b738]
mov ebp, eax
push eax
mov dword [esp + 0x24], ebp
call fcn.00403c30
xor ebx, ebx
mov dword [0x42b738], eax
mov bx, word [ebp + 2]
push ebp
mov dword [esp + 0x3c], ebx
mov word [ebp + 2], 0
call fcn.0040ee00
mov ecx, dword [0x42b724]
mov dword [esp + 0x2c], eax
add esp, 8
cmp byte [ecx], 0
je 0x410be9
test bl, 2
je 0x410d1b
mov edx, dword [0x42b71c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410c4f
mov ecx, dword [0x42b724]
mov edx, dword [0x42b718]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410c65
mov edx, dword [0x42b718]
push 0x5c
push edx
call fcn.0041ab20
add esp, 8
test eax, eax
je 0x410c88
mov byte [eax + 1], 0
call fcn.00407ee0
test eax, eax
je 0x410cbf
mov edx, dword [0x42b73c]
mov ecx, dword [0x42b7b4]
cmp edx, ecx
mov eax, ebp
jge 0x410cbf
mov esi, dword [eax + 0x1a]
push eax
or esi, edi
mov dword [eax + 0x1a], esi
call fcn.00403c30
mov ecx, dword [0x42b7b4]
add esp, 4
inc edx
cmp edx, ecx
jl 0x410ca3
mov eax, dword [0x42bac0]
test byte [eax], 0x10
je 0x410d1b
mov ecx, dword [0x42b724]
push 0
push ecx
call fcn.004010e0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x410d13
push 0xfffffffffffffff8
push esi
call fcn.00401240
lea edx, [esp + 0x48]
push 8
push edx
push esi
call fcn.00401160
push esi
call fcn.00401360
add esp, 0x18
cmp word [esp + 0x40], 0x7f7f
jne 0x410d13
test byte [esp + 0x42], 2
jne 0x410be9
mov eax, dword [0x42b71c]
mov byte [eax], 0x30
mov eax, dword [0x42b73c]
xor edx, edx
lea eax, [eax + eax*4 + 5]
lea eax, [eax + eax*4]
shl eax, 2
div dword [0x42b7b4]
mov ebx, eax
mov eax, dword [ebp + 0x1a]
test edi, eax
mov dword [esp + 0x28], ebx
jne 0x4116ce
test dword [0x42bb70], eax
je 0x4116ce
test ah, 2
jne 0x410ed6
test al, 0x40
mov edi, 1
je 0x410d74
mov ecx, dword [0x42b724]
push ecx
call fcn.004010a0
add esp, 4
test eax, eax
jne 0x410dd3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x410dd5
mov edx, dword [0x42b724]
push 0
push edx
mov dword [esp + 0x38], 0
call fcn.004010e0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x410dc8
push esi
call fcn.00401260
mov ecx, dword [ebp + 0x12]
add esp, 4
cmp eax, ecx
jne 0x410dbf
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.00405750
add esp, 0xc
push esi
call fcn.00401360
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x16]
cmp edx, eax
jne 0x410dd5
xor edi, edi
test edi, edi
mov dword [0x42bbe4], 0
je 0x410ee9
mov eax, dword [0x42bac4]
test eax, eax
je 0x410be4
push 2
push 5
call fcn.004039a0
add esp, 8
test eax, eax
je 0x410e18
cmp byte [eax], 0
je 0x410e18
mov ecx, dword [0x42b724]
push ecx
call fcn.00401f20
add esp, 4
mov edx, dword [0x42b724]
push edx
call fcn.00402350
mov ecx, dword [0x42b724]
mov edx, dword [0x42b720]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410e33
mov eax, dword [0x42b720]
push str..__A
push eax
call fcn.00402040
mov ecx, dword [0x42b720]
push 0
push ecx
call fcn.004010e0
add esp, 0x10
cmp eax, 0xffffffff
je 0x410ea3
push eax
call fcn.00401360
mov esi, dword [0x42b720]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
push eax
mov dl, byte [ecx + esi - 1]
or ecx, 0xffffffff
inc dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + esi - 1], dl
mov eax, dword [0x42b720]
push eax
call fcn.004010e0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410e63
mov eax, dword [ebp + 0x1a]
test al, 0x20
je 0x410ef4
push 0
push ebp
call fcn.004040b0
mov ecx, dword [0x42bbec]
mov edx, dword [0x42b720]
push eax
push ecx
push edx
call fcn.00410970
add esp, 0x14
test eax, eax
je 0x411721
jmp 0x4114b6
mov eax, dword [0x42b724]
push eax
call fcn.00402350
add esp, 4
jmp 0x4116ce
mov word [ebp + 2], 0x1f5
jmp 0x411600
test eax, 0x200000
je 0x410f27
mov eax, dword [esp + 0x18]
mov esi, ebx
sub esi, eax
shr esi, 1
add esi, eax
push esi
push eax
push ebp
call fcn.00410650
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x411721
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x410f2b
mov ebx, dword [esp + 0x18]
mov eax, dword [0x42b720]
push eax
call fcn.00401130
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x410f5f
mov ecx, dword [0x42b720]
mov dword [0x42bbe4], 0x11
push ecx
call fcn.0040aa90
jmp 0x4116f2
mov al, byte [esp + 0x34]
test al, 1
je 0x411263
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dx, word [ebp + 0x26]
mov edi, dword [edx*4 + 0x42ba80]
add edi, 4
test eax, eax
jle 0x410f92
mov edx, eax
push edi
call fcn.00403c30
add esp, 4
dec edx
mov edi, eax
jne 0x410f84
mov eax, dword [edi + 0x1a]
test al, 0x20
je 0x410fd2
push esi
call fcn.00401360
push 0
push ebp
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040b0
mov ecx, dword [0x42b720]
push eax
mov eax, dword [0x42bbec]
push eax
push ecx
call fcn.00410970
add esp, 0x18
test eax, eax
je 0x4116f5
jmp 0x411179
test eax, 0x200000
je 0x411001
mov esi, dword [esp + 0x28]
sub esi, ebx
shr esi, 1
add esi, ebx
push esi
push ebx
push edi
call fcn.00410650
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x4116f5
mov dword [esp + 0x18], esi
jmp 0x41101a
mov edx, dword [edi + 6]
push edx
call fcn.0040bd70
add esp, 4
mov dword [0x42bbe4], eax
test eax, eax
jne 0x4116f5
mov ecx, dword [0x42b790]
xor eax, eax
mov ax, word [ebp + 0x26]
xor edx, edx
cmp ecx, edx
mov eax, dword [eax*4 + 0x42ba40]
mov ebx, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42b778], edx
mov dword [0x42b774], edx
mov byte [0x42b750], 0x39
je 0x4110bf
cmp ax, dx
je 0x4110bf
cmp ebx, 2
je 0x4110bf
mov esi, 5
test ebx, ebx
mov dword [0x42b774], esi
jne 0x41108b
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42b774], esi
jle 0x41108b
mov esi, 0x1f
mov dword [0x42b774], esi
xor eax, eax
test esi, esi
jle 0x4110b4
mov ebp, ecx
sub ebp, 0x42b754
mov bl, byte [eax + ebp + 0x42b754]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42b754], bl
inc eax
cmp eax, esi
jl 0x411099
mov ebp, dword [esp + 0x20]
mov byte [esi + 0x42b754], 0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x4110cd
mov eax, dword [0x426040]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov edx, dword [edi + 0xa]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
push ebx
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42bb60]
add esp, 0x14
test esi, esi
je 0x411128
cmp eax, 2
je 0x4116e3
push 0
push edi
call fcn.004040b0
add esp, 8
push eax
push 0
push edi
call fcn.004040b0
add esp, 8
push eax
push esi
call fcn.0040bf70
add esp, 0xc
mov dword [0x42bbe4], eax
jmp 0x4116e3
cmp eax, 2
je 0x4116e3
mov eax, dword [esp + 0x14]
or esi, 0xffffffff
cmp eax, esi
je 0x411149
push eax
call fcn.00401360
add esp, 4
mov dword [esp + 0x14], esi
push ebx
call fcn.00401360
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x12]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], esi
jne 0x41116c
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x16]
cmp ecx, eax
je 0x411179
call fcn.0040f510
test eax, eax
je 0x4116e3
mov eax, dword [0x42bac0]
mov ecx, dword [0x42b790]
xor edx, edx
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
cmp ecx, edx
mov dword [0x42b778], edx
mov dword [0x42b774], edx
mov byte [0x42b750], 0x39
je 0x411216
test ax, ax
je 0x411216
cmp edi, 2
je 0x411216
mov esi, 5
test edi, edi
mov dword [0x42b774], esi
jne 0x4111e2
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42b774], esi
jle 0x4111e2
mov esi, 0x1f
mov dword [0x42b774], esi
xor eax, eax
test esi, esi
jle 0x41120b
mov edi, ecx
sub edi, 0x42b754
mov bl, byte [edi + eax + 0x42b754]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42b754], bl
inc eax
cmp eax, esi
jl 0x4111f0
mov ebp, dword [esp + 0x20]
mov byte [esi + 0x42b754], 0
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x41122d
mov edi, dword [0x426040]
mov dword [0x426040], esi
jmp 0x411231
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42b720]
push edx
push eax
push ecx
push ebp
call fcn.0040f590
add esp, 0x10
cmp esi, 0xffffffff
je 0x411256
mov dword [0x426040], edi
test eax, eax
je 0x4116e3
jmp 0x4114b6
test al, 2
je 0x41132e
mov ecx, dword [0x42bacc]
test ecx, ecx
je 0x4114b6
mov eax, dword [0x42bac8]
test eax, eax
je 0x4114b6
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.004011a0
add esp, 0xc
mov dword [0x42bbe4], eax
test eax, eax
jne 0x4116f5
mov eax, dword [ebp + 6]
push eax
call fcn.0040bd70
add esp, 4
mov dword [0x42bbe4], eax
test eax, eax
jne 0x4116f5
mov edx, dword [0x426040]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov byte [0x42b750], 0x39
mov dword [0x42b778], ebx
mov dword [0x42b774], ebx
mov ecx, dword [ebp + 0xa]
push ebx
push ebx
push ecx
push edx
push edi
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42bb60]
add esp, 0x14
cmp esi, ebx
je 0x41130f
cmp eax, 2
je 0x4116f5
push ebx
push ebp
call fcn.004040b0
add esp, 8
push eax
push ebx
jmp 0x41143b
cmp eax, 2
je 0x4116f5
push edi
call fcn.00401360
add esp, 4
mov dword [esp + 0x10], 0xffffffff
jmp 0x4114b6
cmp dword [esp + 0x1c], 0xffffffff
jne 0x41134e
mov eax, dword [ebp + 6]
push eax
call fcn.0040bd70
add esp, 4
mov dword [0x42bbe4], eax
test eax, eax
jne 0x411707
mov esi, dword [0x42b790]
xor ecx, ecx
mov cx, word [ebp + 0x26]
xor ebx, ebx
cmp esi, ebx
mov eax, dword [ecx*4 + 0x42ba40]
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42b778], ebx
mov dword [0x42b774], ebx
mov byte [0x42b750], 0x39
je 0x4113ef
cmp ax, bx
je 0x4113ef
cmp edi, 2
je 0x4113ef
xor edx, edx
mov ecx, 5
cmp edi, ebx
mov dword [0x42b774], ecx
jne 0x4113bf
xor ecx, ecx
mov edx, 1
mov cl, byte [esi]
xor ecx, 0x6a
inc esi
cmp ecx, 0x1f
mov dword [0x42b774], ecx
jle 0x4113bf
mov ecx, 0x1f
mov dword [0x42b774], ecx
xor eax, eax
cmp ecx, ebx
jle 0x4113e4
sub esi, 0x42b754
mov bl, dl
add bl, al
xor bl, byte [esi + eax + 0x42b754]
xor bl, 0x6a
mov byte [eax + 0x42b754], bl
inc eax
cmp eax, ecx
jl 0x4113cb
mov ebp, dword [esp + 0x20]
mov byte [ecx + 0x42b754], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4113fd
mov eax, dword [0x426040]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0xa]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push edi
call fcn.004034a0
mov esi, eax
mov eax, dword [0x42bb60]
add esp, 0x14
test esi, esi
je 0x411458
cmp eax, 2
je 0x4116f5
push 0
push ebp
call fcn.004040b0
add esp, 8
push eax
push 0
push ebp
call fcn.004040b0
add esp, 8
push eax
push esi
call fcn.0040bf70
add esp, 0xc
mov dword [0x42bbe4], eax
jmp 0x4116f5
cmp eax, 2
je 0x4116f5
mov eax, dword [ebp + 0x1a]
test al, 8
je 0x411482
test al, 6
lea eax, [ebp + 0x40]
jne 0x411472
lea eax, [ebp + 0x2c]
lea ecx, [eax + 0x10]
lea edx, [eax + 8]
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.00401360
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x12]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], 0xffffffff
jne 0x4114a9
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x16]
cmp ecx, eax
je 0x4114b6
call fcn.0040f510
test eax, eax
je 0x4116f5
cmp dword [ebp + 0x22], 3
jne 0x4114f6
mov edx, dword [0x42b724]
push 0
push edx
call fcn.004010e0
add esp, 8
cmp eax, 0xffffffff
je 0x4114f6
push eax
call fcn.00401360
mov eax, dword [0x42b724]
push eax
call fcn.00402b10
mov ecx, dword [0x42b724]
push ecx
call fcn.00401370
add esp, 0xc
mov dword [esp + 0x24], eax
cmp dword [ebp + 0x22], 2
je 0x4115cc
mov eax, dword [ebp + 0x1a]
test ah, 0x10
jne 0x4115cc
mov eax, dword [esp + 0x24]
test eax, eax
je 0x411547
mov edx, dword [0x42b720]
mov eax, dword [0x42b724]
push edx
push eax
call fcn.00412e20
add esp, 8
test eax, eax
je 0x41153f
mov dword [0x42bbdc], 1
mov word [ebp + 2], 0x1f4
jmp 0x411557
mov word [ebp + 2], 0x1b
jmp 0x411557
mov ecx, dword [0x42b720]
push ecx
push ebp
call fcn.0040f100
add esp, 8
mov cx, word [ebp + 2]
cmp cx, 0x1b
jne 0x41157c
mov edx, dword [0x42b724]
mov dword [0x42bbe4], 0x16
push edx
call fcn.0040aa90
jmp 0x4116e0
mov eax, dword [ebp + 0x1e]
mov edi, 0x80
test ah, 0x10
je 0x41158e
mov edi, 0x81
test ah, 8
je 0x411596
or edi, 2
cmp edi, 0x80
je 0x411600
mov esi, dword [0x42b724]
cmp cx, 0x1f4
jne 0x4115b1
mov esi, dword [0x42b720]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411600
and ah, 0xe7
or eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x411600
mov edi, dword [0x42b720]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0041ac70
mov dword [ebp + 0xe], eax
mov ecx, dword [0x42b720]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4115f0
mov word [ebp + 2], 0x1f6
mov eax, dword [0x42bbe4]
test eax, eax
jne 0x4116e3
mov eax, dword [0x42b720]
mov byte [eax], 0
mov al, byte [esp + 0x34]
test al, 2
je 0x411623
mov word [ebp + 2], 0
mov eax, dword [ebp + 0x22]
test eax, eax
je 0x411653
mov eax, dword [ebp + 0x1a]
test ah, 4
je 0x411653
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x41164e
cmp ax, 0x19
je 0x41164e
cmp ax, 0x1f5
je 0x41164e
cmp ax, 0x1f4
jne 0x411653
call fcn.00410090
cmp dword [ebp + 0x22], 3
jne 0x411678
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x411669
cmp ax, 0x19
jne 0x411678
mov ecx, dword [0x42b724]
push ecx
call fcn.00402800
add esp, 4
mov eax, dword [ebp + 0x1a]
test ah, 0x10
je 0x4116b0
mov eax, dword [0x42bb14]
test eax, eax
je 0x411691
cmp word [ebp + 2], 0x1f5
je 0x4116a7
mov ax, word [ebp + 2]
cmp ax, 0x17
je 0x4116a7
cmp ax, 0x19
je 0x4116a7
cmp ax, 0x1f4
jne 0x4116b0
push ebp
call fcn.0040e250
add esp, 4
mov eax, dword [ebp + 0x1a]
test ah, 8
je 0x4116be
mov dword [0x42b74c], ebp
test byte [ebp + 0x1a], 0x10
je 0x4116ce
mov dword [0x42bb2c], 1
mov edx, dword [esp + 0x28]
push edx
call fcn.00401ea0
mov dword [esp + 0x30], 1
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4116f5
push eax
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x411707
push eax
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x411719
push eax
call fcn.00401360
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x411734
mov eax, dword [0x42b720]
cmp byte [eax], 0
je 0x411734
push eax
call fcn.0041b0a0
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret