Function at 0x409520
Capabilities:
Encode data using xor

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 0x486fa5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x178
mov eax, dword [0x4a2400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov edi, dword [ebx + 8]
mov dword [ebp - 0xb0], edi
mov dword [ebp - 4], 0
cmp byte [0x4a34a8], 0
jne 0x4095ad
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0x52
movups xmmword [ecx], xmm0
push str.You_need_to_run_the_KeyAuthApp.init____function_before_any_other_KeyAuth_functions
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00413c60
call fcn.0040a990
add esp, 0x18
mov dword [ebp - 0xc0], 0xa8b2abe5
xor ecx, ecx
mov dword [ebp - 0xbc], 0xaea0baa2
mov word [ebp - 0xb8], 0xf6
mov byte [ebp - 0xb6], 1
lea eax, [ecx - 0x3d]
xor byte [ebp + ecx - 0xc0], al
inc ecx
cmp ecx, 9
jb 0x4095d3
lea eax, [ebp - 0x184]
mov byte [ebp - 0xb6], 0
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x20], 0xaba4aae5
mov dword [ebp - 0x1c], 0x100f5a2
mov dword [ebp - 0xd0], 0xb5a0b7e5
mov dword [ebp - 0xcc], 0xa4a6a1b4
mov dword [ebp - 0xc8], 0xf0a8a2
mov byte [ebp - 0xc4], 1
mov dword [ebp - 0x9c], 0xaaaca2e5
mov dword [ebp - 0x98], 0xf7ada1a2
mov word [ebp - 0x94], 0x100
mov dword [ebp - 0xa8], 0xa3b5bdb7
mov dword [ebp - 0xa4], 0xa6a0aefa
mov word [ebp - 0xa0], 0xae
mov byte [ebp - 0x9e], 1
call fcn.00407690
mov esi, eax
mov byte [ebp - 4], 1
cmp byte [ebp - 0x9e], 0
je 0x409698
xor ecx, ecx
lea eax, [ecx - 0x3d]
xor byte [ebp + ecx - 0xa8], al
inc ecx
cmp ecx, 9
jb 0x409681
mov byte [ebp - 0x9e], 0
push ecx
lea eax, [ebp - 0x9f]
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412e10
push esi
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xf0]
call fcn.00415210
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x409706
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4096fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409736
push ecx
push edx
call fcn.0048531b
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x170]
cmp ecx, 0xf
jbe 0x409746
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40973c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40973c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048531b
add esp, 8
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0x138]
call fcn.00412980
add esp, 4
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x16c]
call fcn.004084c0
add esp, 4
mov edx, eax
mov esi, dword [ebp - 0xac]
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 5
lea eax, [esi + 0x1b4]
push eax
call fcn.00412980
add esp, 4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.00407480
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x120]
call fcn.00412980
add esp, 4
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004128d0
add esp, 4
mov edx, eax
lea eax, [esi + 0x18]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x90]
call fcn.00412980
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x409833
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409829
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0xf
jbe 0x409883
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409879
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0xf
jbe 0x4098dc
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4098d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x140]
cmp ecx, 0xf
jbe 0x409935
mov edx, dword [ebp - 0x154]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40992b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0xf
mov byte [ebp - 0x154], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x158]
cmp ecx, 0xf
jbe 0x40998e
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409984
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0xf
mov byte [ebp - 0x16c], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x4099e3
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4099d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a2e
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x409a3e
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409a34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a34
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048531b
add esp, 8
sub esp, 0x18
mov dword [ebp - 0xe0], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0xb0], esp
mov ecx, esp
mov dword [ebp - 0xdc], 0xf
mov byte [ebp - 0xf0], 0
push eax
call fcn.00410150
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x90]
mov ecx, esp
push eax
call fcn.00410150
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x11
call fcn.0040a380
add esp, 8
mov byte [ebp - 4], 0x13
mov eax, esp
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x30]
push 0
push 1
mov dword [eax + 0x24], 0
call fcn.00412ff0
add esp, 0x30
mov byte [ebp - 4], 0x14
xor ecx, ecx
mov dword [ebp - 0xa8], 0xb5b6a1ae
mov dword [ebp - 0xa4], 0xacafa6
mov byte [ebp - 0xa0], 1
lea eax, [ecx - 0x3d]
xor byte [ebp + ecx - 0xa8], al
inc ecx
cmp ecx, 7
jb 0x409ad1
push ecx
lea eax, [ebp - 0xa1]
mov byte [ebp - 0xa0], 0
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00412e10
mov byte [ebp - 4], 0x15
mov al, byte [ebp - 0x30]
test al, al
jne 0x409b65
xorps xmm0, xmm0
mov byte [ebp - 0x30], 1
push 8
movlpd qword [ebp - 0x20], xmm0
call fcn.0048509a
mov esi, eax
add esp, 4
lea eax, [ebp - 0x15]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x16
push 0x38
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048509a
mov byte [ebp - 4], 0x15
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov al, byte [ebp - 0x30]
mov dword [ebp - 0x28], esi
jmp 0x409b68
mov esi, dword [ebp - 0x28]
cmp al, 1
jne 0x409b7c
lea eax, [ebp - 0xf0]
mov ecx, esi
push eax
call fcn.00411900
jmp 0x409b82
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.00412c70
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0xdc]
cmp ecx, 0xf
jbe 0x409bcd
mov edx, dword [ebp - 0xf0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409bc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409bc3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048531b
add esp, 8
sub esp, 0x10
mov dword [ebp - 0xe0], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0xdc], 0xf
mov ecx, esp
mov byte [ebp - 0xf0], 0
push eax
call fcn.0040fa60
mov ecx, dword [ebp - 0xac]
call fcn.00403ce0
mov dword [ebp - 0x9c], 0xa5a6b1b0
xor ecx, ecx
mov dword [ebp - 0x98], 0xbabba2
mov byte [ebp - 0x94], 1
nop
lea eax, [ecx - 0x3d]
xor byte [ebp + ecx - 0x9c], al
inc ecx
cmp ecx, 7
jb 0x409c20
push ecx
lea eax, [ebp - 0x95]
mov byte [ebp - 0x94], 0
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00412e10
mov byte [ebp - 4], 0x19
mov al, byte [ebp - 0x30]
test al, al
jne 0x409cb4
xorps xmm0, xmm0
mov byte [ebp - 0x30], 1
push 8
movlpd qword [ebp - 0x20], xmm0
call fcn.0048509a
mov esi, eax
add esp, 4
lea eax, [ebp - 0x15]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x1a
push 0x38
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048509a
mov byte [ebp - 4], 0x19
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov al, byte [ebp - 0x30]
mov dword [ebp - 0x28], esi
jmp 0x409cb7
mov esi, dword [ebp - 0x28]
cmp al, 1
jne 0x409ccd
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.00411900
mov ecx, eax
jmp 0x409cd3
mov ecx, dword [ebp - 0xb4]
xor edx, edx
lea eax, [ecx + 8]
cmp byte [ecx], 4
cmovne eax, edx
mov al, byte [eax]
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x124]
mov byte [ebp - 0x15], al
cmp ecx, 0xf
jbe 0x409d26
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409d19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048531b
mov al, byte [ebp - 0x15]
add esp, 8
test al, al
je 0x40a0d6
lea eax, [ebp - 0x120]
mov dword [ebp - 0x9c], 0xb2ababa0
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x98], 0xb9bda6a2
mov word [ebp - 0x94], 0x100
call fcn.00407690
mov byte [ebp - 4], 0x1b
mov al, byte [ebp - 0x30]
test al, al
jne 0x409dc0
xorps xmm0, xmm0
mov byte [ebp - 0x30], 1
push 8
movlpd qword [ebp - 0x20], xmm0
call fcn.0048509a
mov esi, eax
add esp, 4
lea eax, [ebp - 0x15]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x1c
push 0x38
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0048509a
mov byte [ebp - 4], 0x1b
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov al, byte [ebp - 0x30]
mov dword [ebp - 0x28], esi
jmp 0x409dc3
mov esi, dword [ebp - 0x28]
cmp al, 1
jne 0x409dd7
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call fcn.00411900
jmp 0x409ddd
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, eax
call fcn.00412c70
lea edx, [ebp - 0x108]
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x48]
call fcn.0040a1e0
mov byte [ebp - 4], 0x1f
mov ecx, dword [ebp - 0xf4]
cmp ecx, 0xf
jbe 0x409e37
mov edx, dword [ebp - 0x108]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409e82
push ecx
push edx
call fcn.0048531b
add esp, 8
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0xf
mov byte [ebp - 0x108], 0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x10c]
cmp ecx, 0xf
jbe 0x409e92
mov edx, dword [ebp - 0x120]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409e88
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0048531b
add esp, 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x110], 0
push eax
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x10c], 0xf
mov byte [ebp - 0x120], 0
call fcn.00410150
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0xd8]
mov esi, dword [ebp - 0xc4]
cmp esi, 0xf
mov edx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xc8]
cmova ecx, edx
add eax, ecx
mov dword [edi], 0
cmp esi, 0xf
mov dword [edi + 4], 0
lea ecx, [ebp - 0xd8]
mov dword [edi + 8], 0
cmova ecx, edx
sub eax, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], eax
je 0x409f46
push eax
mov ecx, edi
call fcn.00415180
push dword [ebp - 0xac]
mov esi, dword [edi]
push dword [ebp - 0xb0]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0xac]
add esp, 0xc
mov edx, dword [ebp - 0xd8]
add eax, esi
mov esi, dword [ebp - 0xc4]
mov dword [edi + 4], eax
cmp esi, 0xf
jbe 0x409f76
lea ecx, [esi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x409f6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
cmp ecx, 0xf
jbe 0x409fc5
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fbb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0xf
jbe 0x40a00b
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a001
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.0040fa40
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x40a059
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a04f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x40a09e
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xf
jbe 0x40a1be
mov edx, dword [ebx + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a1b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a1b4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x64]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp ecx, 0xf
jbe 0x40a11a
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a110
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.0040fa40
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x40a168
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a15e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
push ecx
push edx
call fcn.0048531b
add esp, 8
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x40a09e
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a094
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0d0
jmp 0x40a094
push ecx
push edx
call fcn.0048531b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00484fd2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c