Function at 0x40f990
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [0x42ac0c]
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 0x40faf6
mov eax, dword [0x42ac00]
mov edi, dword [eax]
add eax, 4
cmp edi, ebx
mov dword [0x42ac00], eax
je 0x40fa79
push 2
push 5
call fcn.00403a00
add esp, 8
cmp eax, ebx
je 0x40f9f1
cmp byte [eax], 0
je 0x40f9f1
push ebx
push edi
call fcn.004040c0
push eax
call fcn.00401f80
add esp, 0xc
mov eax, dword [0x42abfc]
mov esi, dword [0x42abf8]
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 [0x422560]
fdiv st(1)
call fcn.0041ab54
mov edx, dword [edi + 0x20]
mov dword [esp + 0x3c], ebx
add esi, edx
mov ebp, eax
mov dword [esp + 0x38], esi
mov dword [0x42abf8], esi
fild qword [esp + 0x38]
fmul qword [0x422560]
fdiv st(1)
call fcn.0041ab54
push eax
push ebp
push edi
fstp st(0)
call fcn.0040f590
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40fa63
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 [0x42acb8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, ebx
mov dword [0x42acf4], ebx
mov dword [0x42ac0c], ebx
je 0x40fab3
push 1
push 5
call fcn.00403a00
add esp, 8
push eax
push 0x417
push esi
call edi
push eax
call fcn.004073a0
add esp, 8
mov esi, dword [0x42ac30]
cmp esi, ebx
je 0x40fadb
push 3
push 5
call fcn.00403a00
add esp, 8
push eax
push 0x3e9
push esi
call edi
push eax
call fcn.004073a0
add esp, 8
cmp dword [0x42a900], ebx
jne 0x40faed
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
push ebx
call fcn.00401f00
add esp, 4
mov ecx, dword [0x42a870]
mov dword [esp + 0x10], ebp
mov byte [ecx], 0
mov ecx, dword [0x42a904]
mov eax, dword [0x42a88c]
cmp ecx, ebx
je 0x40fb24
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 [0x42a88c]
mov ecx, dword [0x42a904]
inc eax
cmp eax, ecx
mov dword [0x42a88c], eax
jae 0x410644
mov eax, dword [0x42a888]
mov ebp, eax
push eax
mov dword [esp + 0x28], ebp
call fcn.00403c40
mov dword [0x42a888], eax
xor eax, eax
mov ax, word [ebp + 4]
push ebp
mov dword [esp + 0x30], eax
mov word [ebp + 4], 0
call fcn.0040dd40
mov ecx, dword [0x42a874]
mov ebx, eax
add esp, 8
mov dword [esp + 0x34], ebx
cmp byte [ecx], 0
je 0x40fb24
test byte [esp + 0x28], 2
je 0x40fc23
mov edx, dword [0x42a86c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40fb8e
mov ecx, dword [0x42a874]
mov edx, dword [0x42a868]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40fba4
mov edx, dword [0x42a868]
push 0x5c
push edx
call fcn.00419af0
add esp, 8
test eax, eax
je 0x40fbc7
mov byte [eax + 1], 0
mov eax, dword [0x42abd0]
test byte [eax], 0x10
je 0x40fc23
mov ecx, dword [0x42a874]
push 0
push ecx
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40fc1b
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 0x40fc1b
test byte [esp + 0x42], 2
jne 0x40fb24
mov eax, dword [0x42a86c]
mov byte [eax], 0x30
mov eax, dword [0x42a88c]
xor edx, edx
lea eax, [eax + eax*4 + 5]
lea eax, [eax + eax*4]
shl eax, 2
div dword [0x42a904]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
test ah, 1
jne 0x4105ef
test dword [0x42ac80], eax
je 0x4105ef
test ah, 2
jne 0x40fdd9
test al, 0x40
mov edi, 1
je 0x40fc7b
mov ecx, dword [0x42a874]
push ecx
call fcn.00401100
add esp, 4
test eax, eax
jne 0x40fcd6
test ebx, ebx
je 0x40fcd8
mov edx, dword [0x42a874]
push 0
push edx
mov dword [esp + 0x38], 0
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x40fccb
push esi
call fcn.004012c0
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp eax, ecx
jne 0x40fcc2
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call fcn.00405780
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 0x40fcd8
xor edi, edi
test edi, edi
mov dword [0x42acf4], 0
je 0x40fdec
mov eax, dword [0x42abd4]
test eax, eax
je 0x40fb24
push 2
push 5
call fcn.00403a00
add esp, 8
test eax, eax
je 0x40fd1b
cmp byte [eax], 0
je 0x40fd1b
mov ecx, dword [0x42a874]
push ecx
call fcn.00401f80
add esp, 4
mov edx, dword [0x42a874]
push edx
call fcn.004023b0
mov ecx, dword [0x42a874]
mov edx, dword [0x42a870]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40fd36
mov eax, dword [0x42a870]
push str..__A
push eax
call fcn.004020a0
mov ecx, dword [0x42a870]
push 0
push ecx
call fcn.00401140
add esp, 0x10
cmp eax, 0xffffffff
je 0x40fda6
push eax
call fcn.004013c0
mov esi, dword [0x42a870]
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 [0x42a870]
push eax
call fcn.00401140
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40fd66
mov eax, dword [ebp + 8]
test al, 0x20
je 0x40fdf7
push 0
push ebp
call fcn.004040c0
mov ecx, dword [0x42acfc]
mov edx, dword [0x42a870]
push eax
push ecx
push edx
call fcn.0040f8b0
add esp, 0x14
test eax, eax
je 0x410644
jmp 0x4103f1
mov eax, dword [0x42a874]
push eax
call fcn.004023b0
add esp, 4
jmp 0x4105ef
mov word [ebp + 4], 0x1f5
jmp 0x410520
test eax, 0x200000
je 0x40fe2c
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.0040f590
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x410644
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40fe30
mov ebx, dword [esp + 0x18]
mov eax, dword [0x42a870]
push eax
call fcn.00401190
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x40fe64
mov ecx, dword [0x42a870]
mov dword [0x42acf4], 0x11
push ecx
call fcn.00409b90
jmp 0x410615
mov al, byte [esp + 0x28]
test al, 1
je 0x410168
mov eax, dword [ebp + 0x28]
xor edx, edx
mov dx, word [ebp + 0x2c]
mov edi, dword [edx*4 + 0x42ab90]
add edi, 4
test eax, eax
jle 0x40fe97
mov edx, eax
push edi
call fcn.00403c40
add esp, 4
dec edx
mov edi, eax
jne 0x40fe89
mov eax, dword [edi + 8]
test al, 0x20
je 0x40fed7
push esi
call fcn.004013c0
push 0
push ebp
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040c0
mov ecx, dword [0x42a870]
push eax
mov eax, dword [0x42acfc]
push eax
push ecx
call fcn.0040f8b0
add esp, 0x18
test eax, eax
je 0x410618
jmp 0x41007e
test eax, 0x200000
je 0x40ff06
mov esi, dword [esp + 0x20]
sub esi, ebx
shr esi, 1
add esi, ebx
push esi
push ebx
push edi
call fcn.0040f590
add esp, 0xc
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x410618
mov dword [esp + 0x18], esi
jmp 0x40ff1f
mov edx, dword [edi + 0x1c]
push edx
call fcn.0040acf0
add esp, 4
mov dword [0x42acf4], eax
test eax, eax
jne 0x410618
mov ecx, dword [0x42a8e0]
xor eax, eax
mov ax, word [ebp + 0x2c]
xor edx, edx
cmp ecx, edx
mov eax, dword [eax*4 + 0x42ab50]
mov ebx, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42a8c8], edx
mov dword [0x42a8c4], edx
mov byte [0x42a8a0], 0x39
je 0x40ffc4
cmp ax, dx
je 0x40ffc4
cmp ebx, 2
je 0x40ffc4
mov esi, 5
test ebx, ebx
mov dword [0x42a8c4], esi
jne 0x40ff90
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42a8c4], esi
jle 0x40ff90
mov esi, 0x1f
mov dword [0x42a8c4], esi
xor eax, eax
test esi, esi
jle 0x40ffb9
mov ebp, ecx
sub ebp, 0x42a8a4
mov bl, byte [eax + ebp + 0x42a8a4]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42a8a4], bl
inc eax
cmp eax, esi
jl 0x40ff9e
mov ebp, dword [esp + 0x24]
mov byte [esi + 0x42a8a4], 0
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x40ffd2
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 [0x42ac70]
add esp, 0x14
test esi, esi
je 0x41002d
cmp eax, 2
je 0x410604
push 0
push edi
call fcn.004040c0
add esp, 8
push eax
push 0
push edi
call fcn.004040c0
add esp, 8
push eax
push esi
call fcn.0040aef0
add esp, 0xc
mov dword [0x42acf4], eax
jmp 0x410604
cmp eax, 2
je 0x410604
mov eax, dword [esp + 0x14]
or esi, 0xffffffff
cmp eax, esi
je 0x41004e
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 0x410071
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x14]
cmp ecx, eax
je 0x41007e
call fcn.0040e450
test eax, eax
je 0x410604
mov eax, dword [0x42abd0]
mov ecx, dword [0x42a8e0]
xor edx, edx
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
cmp ecx, edx
mov dword [0x42a8c8], edx
mov dword [0x42a8c4], edx
mov byte [0x42a8a0], 0x39
je 0x41011b
test ax, ax
je 0x41011b
cmp edi, 2
je 0x41011b
mov esi, 5
test edi, edi
mov dword [0x42a8c4], esi
jne 0x4100e7
xor eax, eax
mov edx, 1
mov al, byte [ecx]
mov esi, eax
xor esi, 0x6a
inc ecx
cmp esi, 0x1f
mov dword [0x42a8c4], esi
jle 0x4100e7
mov esi, 0x1f
mov dword [0x42a8c4], esi
xor eax, eax
test esi, esi
jle 0x410110
mov edi, ecx
sub edi, 0x42a8a4
mov bl, byte [edi + eax + 0x42a8a4]
mov cl, dl
add cl, al
xor bl, cl
xor bl, 0x6a
mov byte [eax + 0x42a8a4], bl
inc eax
cmp eax, esi
jl 0x4100f5
mov ebp, dword [esp + 0x24]
mov byte [esi + 0x42a8a4], 0
mov esi, dword [esp + 0x1c]
cmp esi, 0xffffffff
je 0x410132
mov edi, dword [0x425274]
mov dword [0x425274], esi
jmp 0x410136
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42a870]
push edx
push eax
push ecx
push ebp
call fcn.0040e4d0
add esp, 0x10
cmp esi, 0xffffffff
je 0x41015b
mov dword [0x425274], edi
test eax, eax
je 0x410604
jmp 0x4103f1
test al, 2
je 0x410269
mov ecx, dword [0x42abdc]
test ecx, ecx
je 0x4103f1
mov eax, dword [0x42abd8]
test eax, eax
je 0x4103f1
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00401200
add esp, 0xc
mov dword [0x42acf4], eax
test eax, eax
jne 0x410618
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040acf0
add esp, 4
mov dword [0x42acf4], eax
test eax, eax
jne 0x410618
mov ecx, dword [0x4252a8]
lea edx, [ecx - 0x738580]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp ecx, 0x14
jl 0x4101e3
cmp byte [ecx + edx], 0x90
je 0x4101f6
mov edx, dword [0x42acc4]
push 0
push 0x64
push 0xb
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [0x425274]
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov byte [0x42a8a0], 0x39
mov dword [0x42a8c8], ebx
mov dword [0x42a8c4], ebx
mov eax, dword [ebp + 0x20]
push ebx
push ebx
push eax
push ecx
push edi
call fcn.00403500
mov esi, eax
mov eax, dword [0x42ac70]
add esp, 0x14
cmp esi, ebx
je 0x41024a
cmp eax, 2
je 0x410618
push ebx
push ebp
call fcn.004040c0
add esp, 8
push eax
push ebx
jmp 0x410376
cmp eax, 2
je 0x410618
push edi
call fcn.004013c0
add esp, 4
mov dword [esp + 0x10], 0xffffffff
jmp 0x4103f1
cmp dword [esp + 0x1c], 0xffffffff
jne 0x410289
mov edx, dword [ebp + 0x1c]
push edx
call fcn.0040acf0
add esp, 4
mov dword [0x42acf4], eax
test eax, eax
jne 0x41062a
mov esi, dword [0x42a8e0]
xor eax, eax
mov ax, word [ebp + 0x2c]
xor ebx, ebx
cmp esi, ebx
mov eax, dword [eax*4 + 0x42ab50]
mov edi, dword [eax + 8]
mov ax, word [eax + 2]
mov dword [0x42a8c8], ebx
mov dword [0x42a8c4], ebx
mov byte [0x42a8a0], 0x39
je 0x41032a
cmp ax, bx
je 0x41032a
cmp edi, 2
je 0x41032a
xor edx, edx
mov ecx, 5
cmp edi, ebx
mov dword [0x42a8c4], ecx
jne 0x4102fa
xor ecx, ecx
mov edx, 1
mov cl, byte [esi]
xor ecx, 0x6a
inc esi
cmp ecx, 0x1f
mov dword [0x42a8c4], ecx
jle 0x4102fa
mov ecx, 0x1f
mov dword [0x42a8c4], ecx
xor eax, eax
cmp ecx, ebx
jle 0x41031f
sub esi, 0x42a8a4
mov bl, dl
add bl, al
xor bl, byte [esi + eax + 0x42a8a4]
xor bl, 0x6a
mov byte [eax + 0x42a8a4], bl
inc eax
cmp eax, ecx
jl 0x410306
mov ebp, dword [esp + 0x24]
mov byte [ecx + 0x42a8a4], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x410338
mov eax, dword [0x425274]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
push edi
call fcn.00403500
mov esi, eax
mov eax, dword [0x42ac70]
add esp, 0x14
test esi, esi
je 0x410393
cmp eax, 2
je 0x410618
push 0
push ebp
call fcn.004040c0
add esp, 8
push eax
push 0
push ebp
call fcn.004040c0
add esp, 8
push eax
push esi
call fcn.0040aef0
add esp, 0xc
mov dword [0x42acf4], eax
jmp 0x410618
cmp eax, 2
je 0x410618
mov eax, dword [ebp + 8]
test al, 8
je 0x4103bd
test al, 6
lea eax, [ebp + 0x42]
jne 0x4103ad
lea eax, [ebp + 0x2e]
lea edx, [eax + 0x10]
lea ecx, [eax + 8]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.004013c0
mov edx, dword [esp + 0x3c]
mov eax, dword [ebp + 0x18]
add esp, 4
cmp edx, eax
mov dword [esp + 0x10], 0xffffffff
jne 0x4103e4
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
je 0x4103f1
call fcn.0040e450
test eax, eax
je 0x410618
cmp dword [ebp + 0x10], 3
jne 0x410431
mov ecx, dword [0x42a874]
push 0
push ecx
call fcn.00401140
add esp, 8
cmp eax, 0xffffffff
je 0x410431
push eax
call fcn.004013c0
mov edx, dword [0x42a874]
push edx
call fcn.00402b70
mov eax, dword [0x42a874]
push eax
call fcn.004013d0
add esp, 0xc
mov dword [esp + 0x34], eax
cmp dword [ebp + 0x10], 2
je 0x4104ec
mov eax, dword [ebp + 8]
mov esi, 0x1000
test esi, eax
jne 0x4104ec
mov eax, dword [esp + 0x34]
test eax, eax
je 0x410487
mov ecx, dword [0x42a870]
mov edx, dword [0x42a874]
push ecx
push edx
call fcn.00411e50
add esp, 8
test eax, eax
je 0x41047f
mov dword [0x42acec], 1
mov word [ebp + 4], 0x1f4
jmp 0x410496
mov word [ebp + 4], 0x1b
jmp 0x410496
mov eax, dword [0x42a870]
push eax
push ebp
call fcn.0040e040
add esp, 8
mov ax, word [ebp + 4]
cmp ax, 0x1b
jne 0x4104bb
mov ecx, dword [0x42a874]
mov dword [0x42acf4], 0x16
push ecx
call fcn.00409b90
jmp 0x410601
test dword [ebp + 0xc], esi
je 0x410520
cmp ax, 0x1f4
push 0x100
jne 0x4104dc
mov edx, dword [0x42a870]
push edx
call fcn.0041995c
add esp, 8
jmp 0x410520
mov eax, dword [0x42a874]
push eax
call fcn.0041995c
add esp, 8
jmp 0x410520
mov edi, dword [0x42a870]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00419c40
mov dword [ebp + 0x24], eax
mov ecx, dword [0x42a870]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410510
mov word [ebp + 4], 0x1f6
mov eax, dword [0x42acf4]
test eax, eax
jne 0x410604
mov ecx, dword [0x42a870]
mov al, byte [esp + 0x28]
test al, 2
mov byte [ecx], 0
je 0x410544
mov word [ebp + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x410574
mov eax, dword [ebp + 8]
test ah, 4
je 0x410574
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x41056f
cmp ax, 0x19
je 0x41056f
cmp ax, 0x1f5
je 0x41056f
cmp ax, 0x1f4
jne 0x410574
call fcn.0040efd0
cmp dword [ebp + 0x10], 3
jne 0x410599
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x41058a
cmp ax, 0x19
jne 0x410599
mov edx, dword [0x42a874]
push edx
call fcn.00402860
add esp, 4
mov eax, dword [ebp + 8]
test ah, 0x10
je 0x4105d1
mov eax, dword [0x42ac24]
test eax, eax
je 0x4105b2
cmp word [ebp + 4], 0x1f5
je 0x4105c8
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x4105c8
cmp ax, 0x19
je 0x4105c8
cmp ax, 0x1f4
jne 0x4105d1
push ebp
call fcn.0040d1a0
add esp, 4
mov eax, dword [ebp + 8]
test ah, 8
je 0x4105df
mov dword [0x42a89c], ebp
test byte [ebp + 8], 0x10
je 0x4105ef
mov dword [0x42ac3c], 1
mov eax, dword [esp + 0x20]
push eax
call fcn.00401f00
mov dword [esp + 0x30], 1
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x410618
mov ecx, eax
push ecx
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x41062a
push eax
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x41063c
push eax
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x410657
mov eax, dword [0x42a870]
cmp byte [eax], 0
je 0x410657
push eax
call fcn.0041a070
add esp, 4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret