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

Disassembly:
sub esp, 0x38
mov eax, dword [0x42ad2c]
push ebx
push ebp
xor ebp, ebp
or ebx, 0xffffffff
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
je 0x4100a6
mov eax, dword [0x42ad20]
mov edi, dword [eax]
add eax, 4
cmp edi, ebp
mov dword [0x42ad20], eax
je 0x410029
push 2
push 5
call fcn.00403a00
add esp, 8
cmp eax, ebp
je 0x40ffa1
cmp byte [eax], 0
je 0x40ffa1
push ebp
push edi
call fcn.004041f0
push eax
call fcn.00401f80
add esp, 0xc
mov eax, dword [0x42ad1c]
mov esi, dword [0x42ad18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
fild qword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ebp
fild qword [esp + 0x38]
fmul qword [0x4224f8]
fdiv st(1)
call fcn.0041b4d4
mov edx, dword [edi + 0x20]
mov dword [esp + 0x3c], ebp
add esi, edx
mov ebx, eax
mov dword [esp + 0x38], esi
mov dword [0x42ad18], esi
fild qword [esp + 0x38]
fmul qword [0x4224f8]
fdiv st(1)
call fcn.0041b4d4
push eax
push ebx
push edi
fstp st(0)
call fcn.0040fb40
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410013
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push eax
call fcn.004013c0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov esi, dword [0x42add8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, ebp
mov dword [0x42ae14], ebp
mov dword [0x42ad2c], ebp
je 0x410063
push 1
push 5
call fcn.00403a00
add esp, 8
push eax
push 0x417
push esi
call edi
push eax
call fcn.004074e0
add esp, 8
mov esi, dword [0x42ad50]
cmp esi, ebp
je 0x41008b
push 3
push 5
call fcn.00403a00
add esp, 8
push eax
push 0x3e9
push esi
call edi
push eax
call fcn.004074e0
add esp, 8
cmp dword [0x42aa20], ebp
jne 0x41009d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push ebp
call fcn.00401f00
add esp, 4
mov ecx, dword [0x42a990]
mov dword [esp + 0x10], ebx
mov byte [ecx], 0
mov ecx, dword [0x42aa24]
mov eax, dword [0x42a9ac]
cmp ecx, ebp
je 0x4100d4
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 eax, dword [0x42a9ac]
mov ecx, dword [0x42aa24]
inc eax
cmp eax, ecx
mov dword [0x42a9ac], eax
jae 0x410c08
mov eax, dword [0x42a9a8]
mov ebp, eax
push eax
mov dword [esp + 0x28], ebp
call fcn.00403d70
mov dword [0x42a9a8], eax
xor eax, eax
mov ax, word [ebp + 4]
push ebp
mov dword [esp + 0x30], eax
mov word [ebp + 4], 0
call fcn.0040e2f0
mov ecx, dword [0x42a994]
mov ebx, eax
add esp, 8
mov dword [esp + 0x34], ebx
cmp byte [ecx], 0
je 0x4100d4
test byte [esp + 0x28], 2
je 0x4101d3
mov edx, dword [0x42a98c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41013e
mov ecx, dword [0x42a994]
mov edx, dword [0x42a988]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410154
mov edx, dword [0x42a988]
push 0x5c
push edx
call fcn.0041a130
add esp, 8
test eax, eax
je 0x410177
mov byte [eax + 1], 0
mov eax, dword [0x42acf0]
test byte [eax], 0x10
je 0x4101d3
mov ecx, dword [0x42a994]
push 0
push ecx
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4101cb
push 0xfffffffffffffff8
push esi
call fcn.004012a0
lea edx, [esp + 0x48]
push 8
push edx
push esi
call fcn.004011c0
push esi
call fcn.004013c0
add esp, 0x18
cmp word [esp + 0x40], 0x7f7f
jne 0x4101cb
test byte [esp + 0x42], 2
jne 0x4100d4
mov eax, dword [0x42a98c]
mov byte [eax], 0x30
mov eax, dword [0x42a9ac]
xor edx, edx
lea eax, [eax + eax*4 + 5]
lea eax, [eax + eax*4]
shl eax, 2
div dword [0x42aa24]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
test ah, 1
jne 0x410bb5
test dword [0x42ada0], eax
je 0x410bb5
test ah, 2
jne 0x410389
test al, 0x40
mov edi, 1
je 0x41022b
mov ecx, dword [0x42a994]
push ecx
call fcn.00401100
add esp, 4
test eax, eax
jne 0x410286
test ebx, ebx
je 0x410288
mov edx, dword [0x42a994]
push 0
push edx
mov dword [esp + 0x38], 0
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x41027b
push esi
call fcn.004012c0
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp eax, ecx
jne 0x410272
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.004058c0
add esp, 0xc
push esi
call fcn.004013c0
add esp, 4
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
cmp edx, eax
jne 0x410288
xor edi, edi
test edi, edi
mov dword [0x42ae14], 0
je 0x41039c
mov eax, dword [0x42acf4]
test eax, eax
je 0x4100d4
push 2
push 5
call fcn.00403a00
add esp, 8
test eax, eax
je 0x4102cb
cmp byte [eax], 0
je 0x4102cb
mov ecx, dword [0x42a994]
push ecx
call fcn.00401f80
add esp, 4
mov edx, dword [0x42a994]
push edx
call fcn.004023b0
mov ecx, dword [0x42a994]
mov edx, dword [0x42a990]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4102e6
mov eax, dword [0x42a990]
push str..__A
push eax
call fcn.004020a0
mov ecx, dword [0x42a990]
push 0
push ecx
call fcn.00401140
add esp, 0x10
cmp eax, 0xffffffff
je 0x410356
push eax
call fcn.004013c0
mov esi, dword [0x42a990]
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 [0x42a990]
push eax
call fcn.00401140
add esp, 0xc
cmp eax, 0xffffffff
jne 0x410316
mov eax, dword [ebp + 8]
test al, 0x20
je 0x4103a7
push 0
push ebp
call fcn.004041f0
mov ecx, dword [0x42ae1c]
mov edx, dword [0x42a990]
push eax
push ecx
push edx
call fcn.0040fe60
add esp, 0x14
test eax, eax
je 0x410c08
jmp 0x41099e
mov eax, dword [0x42a994]
push eax
call fcn.004023b0
add esp, 4
jmp 0x410bb5
mov word [ebp + 4], 0x1f5
jmp 0x410ae7
test eax, 0x200000
je 0x4103dc
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
sub esi, eax
shr esi, 1
add esi, eax
push esi
push eax
push ebp
call fcn.0040fb40
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x410c08
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x4103e0
mov ebx, dword [esp + 0x18]
mov eax, dword [0x42a990]
push eax
call fcn.00401190
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x410414
mov ecx, dword [0x42a990]
mov dword [0x42ae14], 0x11
push ecx
call fcn.00409ce0
jmp 0x410bd9
mov al, byte [esp + 0x28]
test al, 1
je 0x410716
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dx, word [ebp + 0x2c]
mov edi, dword [edx*4 + 0x42acb0]
add edi, 4
test eax, eax
jle 0x410447
mov edx, eax
push edi
call fcn.00403d70
add esp, 4
dec edx
mov edi, eax
jne 0x410439
mov eax, dword [edi + 8]
test al, 0x20
je 0x410487
push esi
call fcn.004013c0
push 0
push ebp
mov dword [esp + 0x1c], 0xffffffff
call fcn.004041f0
mov ecx, dword [0x42a990]
push eax
mov eax, dword [0x42ae1c]
push eax
push ecx
call fcn.0040fe60
add esp, 0x18
test eax, eax
je 0x410bdc
jmp 0x41062e
test eax, 0x200000
je 0x4104b6
mov esi, dword [esp + 0x20]
sub esi, ebx
shr esi, 1
add esi, ebx
push esi
push ebx
push edi
call fcn.0040fb40
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x410bdc
mov dword [esp + 0x18], esi
jmp 0x4104cf
mov edx, dword [edi + 0x1c]
push edx
call fcn.0040b030
add esp, 4
mov dword [0x42ae14], eax
test eax, eax
jne 0x410bdc
mov ecx, dword [0x42aa00]
xor eax, eax
mov ax, word [ebp + 0x2c]
xor edx, edx
cmp ecx, edx
mov eax, dword [eax*4 + 0x42ac70]
mov ebx, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42a9e8], edx
mov dword [0x42a9e4], edx
mov byte [0x42a9c0], 0x39
je 0x410574
cmp ax, dx
je 0x410574
cmp ebx, 2
je 0x410574
mov esi, 5
test ebx, ebx
mov dword [0x42a9e4], esi
jne 0x410540
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42a9e4], esi
jle 0x410540
mov esi, 0x1f
mov dword [0x42a9e4], esi
xor eax, eax
test esi, esi
jle 0x410569
mov ebp, ecx
sub ebp, 0x42a9c4
mov bl, byte [eax + ebp + 0x42a9c4]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42a9c4], bl
inc eax
cmp eax, esi
jl 0x41054e
mov ebp, dword [esp + 0x24]
mov byte [esi + 0x42a9c4], 0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x410582
mov eax, dword [0x425274]
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push edx
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
push ebx
call fcn.00403500
mov esi, eax
mov eax, dword [0x42ad90]
add esp, 0x14
test esi, esi
je 0x4105dd
cmp eax, 2
je 0x410bca
push 0
push edi
call fcn.004041f0
add esp, 8
push eax
push 0
push edi
call fcn.004041f0
add esp, 8
push eax
push esi
call fcn.0040b230
add esp, 0xc
mov dword [0x42ae14], eax
jmp 0x410bca
cmp eax, 2
je 0x410bca
mov eax, dword [esp + 0x14]
or esi, 0xffffffff
cmp eax, esi
je 0x4105fe
push eax
call fcn.004013c0
add esp, 4
mov dword [esp + 0x14], esi
push ebx
call fcn.004013c0
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x18]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], esi
jne 0x410621
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x14]
cmp ecx, eax
je 0x41062e
call fcn.0040ea00
test eax, eax
je 0x410bca
mov eax, dword [0x42acf0]
mov edx, dword [0x42aa00]
xor ecx, ecx
mov esi, dword [eax + 8]
mov ax, word [eax + 2]
cmp edx, ecx
mov dword [0x42a9e8], ecx
mov dword [0x42a9e4], ecx
mov byte [0x42a9c0], 0x39
je 0x4106c9
cmp ax, cx
je 0x4106c9
cmp esi, 2
je 0x4106c9
xor ebx, ebx
mov ecx, 5
test esi, esi
mov dword [0x42a9e4], ecx
jne 0x410697
xor ecx, ecx
mov ebx, 1
mov cl, byte [edx]
xor ecx, 0x6a
inc edx
cmp ecx, 0x1f
mov dword [0x42a9e4], ecx
jle 0x410697
mov ecx, 0x1f
mov dword [0x42a9e4], ecx
xor eax, eax
test ecx, ecx
jle 0x4106be
mov esi, edx
sub esi, 0x42a9c4
mov dl, bl
add dl, al
xor dl, byte [esi + eax + 0x42a9c4]
xor dl, 0x6a
mov byte [eax + 0x42a9c4], dl
inc eax
cmp eax, ecx
jl 0x4106a5
mov ebp, dword [esp + 0x24]
mov byte [ecx + 0x42a9c4], 0
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x4106e0
mov edi, dword [0x425274]
mov dword [0x425274], esi
jmp 0x4106e4
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [0x42a990]
push eax
push ecx
push edx
push ebp
call fcn.0040ea80
add esp, 0x10
cmp esi, 0xffffffff
je 0x410709
mov dword [0x425274], edi
test eax, eax
je 0x410bca
jmp 0x41099e
test al, 2
je 0x410816
mov ecx, dword [0x42acfc]
test ecx, ecx
je 0x41099e
mov eax, dword [0x42acf8]
test eax, eax
je 0x41099e
push eax
mov eax, dword [esp + 0x14]
push ecx
push eax
call fcn.00401200
add esp, 0xc
mov dword [0x42ae14], eax
test eax, eax
jne 0x410bdc
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.0040b030
add esp, 4
mov dword [0x42ae14], eax
test eax, eax
jne 0x410bdc
mov edx, dword [0x4252a8]
or ecx, 0xffffffff
add edx, 0xff8c7a80
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp ecx, 0x14
jl 0x410791
cmp byte [ecx + edx], 0xc9
je 0x4107a3
mov eax, dword [0x42ade4]
push 0
push 0x64
push 0xb
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [0x425274]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov byte [0x42a9c0], 0x39
mov dword [0x42a9e8], ebx
mov dword [0x42a9e4], ebx
mov ecx, dword [ebp + 0x20]
push ebx
push ebx
push ecx
push edx
push edi
call fcn.00403500
mov esi, eax
mov eax, dword [0x42ad90]
add esp, 0x14
cmp esi, ebx
je 0x4107f7
cmp eax, 2
je 0x410bdc
push ebx
push ebp
call fcn.004041f0
add esp, 8
push eax
push ebx
jmp 0x410923
cmp eax, 2
je 0x410bdc
push edi
call fcn.004013c0
add esp, 4
mov dword [esp + 0x10], 0xffffffff
jmp 0x41099e
cmp dword [esp + 0x1c], 0xffffffff
jne 0x410836
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040b030
add esp, 4
mov dword [0x42ae14], eax
test eax, eax
jne 0x410bee
mov esi, dword [0x42aa00]
xor ecx, ecx
mov cx, word [ebp + 0x2c]
xor ebx, ebx
cmp esi, ebx
mov eax, dword [ecx*4 + 0x42ac70]
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42a9e8], ebx
mov dword [0x42a9e4], ebx
mov byte [0x42a9c0], 0x39
je 0x4108d7
cmp ax, bx
je 0x4108d7
cmp edi, 2
je 0x4108d7
xor edx, edx
mov ecx, 5
cmp edi, ebx
mov dword [0x42a9e4], ecx
jne 0x4108a7
xor ecx, ecx
mov edx, 1
mov cl, byte [esi]
xor ecx, 0x6a
inc esi
cmp ecx, 0x1f
mov dword [0x42a9e4], ecx
jle 0x4108a7
mov ecx, 0x1f
mov dword [0x42a9e4], ecx
xor eax, eax
cmp ecx, ebx
jle 0x4108cc
sub esi, 0x42a9c4
mov bl, dl
add bl, al
xor bl, byte [esi + eax + 0x42a9c4]
xor bl, 0x6a
mov byte [eax + 0x42a9c4], bl
inc eax
cmp eax, ecx
jl 0x4108b3
mov ebp, dword [esp + 0x24]
mov byte [ecx + 0x42a9c4], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x4108e5
mov eax, dword [0x425274]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov edx, dword [ebp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
push edi
call fcn.00403500
mov esi, eax
mov eax, dword [0x42ad90]
add esp, 0x14
test esi, esi
je 0x410940
cmp eax, 2
je 0x410bdc
push 0
push ebp
call fcn.004041f0
add esp, 8
push eax
push 0
push ebp
call fcn.004041f0
add esp, 8
push eax
push esi
call fcn.0040b230
add esp, 0xc
mov dword [0x42ae14], eax
jmp 0x410bdc
cmp eax, 2
je 0x410bdc
mov eax, dword [ebp + 8]
test al, 8
je 0x41096a
test al, 6
lea eax, [ebp + 0x42]
jne 0x41095a
lea eax, [ebp + 0x2e]
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.004013c0
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp eax, ecx
mov dword [esp + 0x10], 0xffffffff
jne 0x410991
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
cmp ecx, eax
je 0x41099e
call fcn.0040ea00
test eax, eax
je 0x410bdc
cmp dword [ebp + 0x10], 3
jne 0x4109de
mov edx, dword [0x42a994]
push 0
push edx
call fcn.00401140
add esp, 8
cmp eax, 0xffffffff
je 0x4109de
push eax
call fcn.004013c0
mov eax, dword [0x42a994]
push eax
call fcn.00402b70
mov ecx, dword [0x42a994]
push ecx
call fcn.004013d0
add esp, 0xc
mov dword [esp + 0x34], eax
cmp dword [ebp + 0x10], 2
je 0x410ab3
mov eax, dword [ebp + 8]
test ah, 0x10
jne 0x410ab3
mov eax, dword [esp + 0x34]
test eax, eax
je 0x410a2f
mov edx, dword [0x42a990]
mov eax, dword [0x42a994]
push edx
push eax
call fcn.00412420
add esp, 8
test eax, eax
je 0x410a27
mov dword [0x42ae0c], 1
mov word [ebp + 4], 0x1f4
jmp 0x410a3f
mov word [ebp + 4], 0x1b
jmp 0x410a3f
mov ecx, dword [0x42a990]
push ecx
push ebp
call fcn.0040e5f0
add esp, 8
mov cx, word [ebp + 4]
cmp cx, 0x1b
jne 0x410a64
mov edx, dword [0x42a994]
mov dword [0x42ae14], 0x16
push edx
call fcn.00409ce0
jmp 0x410bc7
mov eax, dword [ebp + 0xc]
mov edi, 0x80
test ah, 0x10
je 0x410a76
mov edi, 0x81
test ah, 8
je 0x410a7e
or edi, 2
cmp edi, 0x80
je 0x410ae7
mov esi, dword [0x42a994]
cmp cx, 0x1f4
jne 0x410a99
mov esi, dword [0x42a990]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410ae7
and al, 0xfc
or eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x410ae7
mov edi, dword [0x42a990]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0041a280
mov dword [ebp + 0x24], eax
mov ecx, dword [0x42a990]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410ad7
mov word [ebp + 4], 0x1f6
mov eax, dword [0x42ae14]
test eax, eax
jne 0x410bca
mov eax, dword [0x42a990]
mov byte [eax], 0
mov al, byte [esp + 0x28]
test al, 2
je 0x410b0a
mov word [ebp + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x410b3a
mov eax, dword [ebp + 8]
test ah, 4
je 0x410b3a
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x410b35
cmp ax, 0x19
je 0x410b35
cmp ax, 0x1f5
je 0x410b35
cmp ax, 0x1f4
jne 0x410b3a
call fcn.0040f580
cmp dword [ebp + 0x10], 3
jne 0x410b5f
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x410b50
cmp ax, 0x19
jne 0x410b5f
mov ecx, dword [0x42a994]
push ecx
call fcn.00402860
add esp, 4
mov eax, dword [ebp + 8]
test ah, 0x10
je 0x410b97
mov eax, dword [0x42ad44]
test eax, eax
je 0x410b78
cmp word [ebp + 4], 0x1f5
je 0x410b8e
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x410b8e
cmp ax, 0x19
je 0x410b8e
cmp ax, 0x1f4
jne 0x410b97
push ebp
call fcn.0040d6c0
add esp, 4
mov eax, dword [ebp + 8]
test ah, 8
je 0x410ba5
mov dword [0x42a9bc], ebp
test byte [ebp + 8], 0x10
je 0x410bb5
mov dword [0x42ad5c], 1
mov edx, dword [esp + 0x20]
push edx
call fcn.00401f00
mov dword [esp + 0x30], 1
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x410bdc
push eax
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x410bee
push eax
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x410c00
push eax
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x410c1b
mov eax, dword [0x42a990]
cmp byte [eax], 0
je 0x410c1b
push eax
call fcn.0041a6b0
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret