Function at 0x40f010
Capabilities:
Encode data using xor
Hash data with md5
Query or enumerate registry value

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 0x521a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x6c0
push esi
push edi
mov dword [ebp - 0xb8], ecx
mov esi, 0x20019
call fcn.0040d730
movaps xmm0, xmmword [0x547810]
test eax, eax
mov ecx, 0x20119
mov byte [ebp - 0x25], 0xd2
cmovne esi, ecx
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x25], al
inc ecx
cmp ecx, 7
jb 0x40f070
mov dword [0x55d560], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x25]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x58], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f0a2
sub ecx, edx
lea eax, [ebp - 0x25]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402b80
mov dword [ebp - 4], 0
lea edx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0xd0], xmm0
cmovae edx, dword [ebp - 0x6c]
mov ecx, edx
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f0f0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.00402b80
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
cmp ecx, 0x10
jb 0x40f13e
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f134
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc9b
push ecx
push edx
call fcn.004fb0f1
add esp, 8
movaps xmm0, xmmword [0x549e50]
xor ecx, ecx
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x50], 0
movaps xmm0, xmmword [0x547290]
mov dword [ebp - 0x88], 0xd9c5ecf1
mov dword [ebp - 0x84], 0xeaede5e9
mov byte [ebp - 0x80], 0xf0
movups xmmword [ebp - 0x7f], xmm0
nop dword [eax + eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x98], al
inc ecx
cmp ecx, 0x1f
jb 0x40f180
mov dword [0x55d568], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x79], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f1b8
sub ecx, edx
lea eax, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b80
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x50]
push ecx
push esi
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x30]
test eax, eax
sete al
mov byte [ebp - 0x11], al
cmp ecx, 0x10
jb 0x40f22e
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f221
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc87
push ecx
push edx
call fcn.004fb0f1
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
je 0x40f345
movaps xmm0, xmmword [0x5480f0]
xor ecx, ecx
mov dword [ebp - 0x48], 0x20019
mov dword [ebp - 0x54], 0x400
mov dword [ebp - 0x29], 0xe2eae9ca
mov byte [ebp - 0x25], 0xe2
movups xmmword [ebp - 0x24], xmm0
nop dword [eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x29], al
inc ecx
cmp ecx, 0xb
jb 0x40f260
mov dword [0x55d530], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x29]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f292
sub ecx, edx
lea eax, [ebp - 0x29]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b80
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x6d0]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push 0
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x30]
test eax, eax
sete al
mov byte [ebp - 0x11], al
cmp ecx, 0x10
jb 0x40f30d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f300
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc8c
push ecx
push edx
call fcn.004fb0f1
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
je 0x40f33c
lea ecx, [ebp - 0x6d0]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f320
sub ecx, edx
lea eax, [ebp - 0x6d0]
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.00482bf0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movaps xmm0, xmmword [0x547810]
xor ecx, ecx
mov byte [ebp - 0x25], 0xd2
movups xmmword [ebp - 0x24], xmm0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x25], al
inc ecx
cmp ecx, 7
jb 0x40f356
mov dword [0x55d560], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x25]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x30], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f388
sub ecx, edx
lea eax, [ebp - 0x25]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b80
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 0x10
xorps xmm0, xmm0
movups xmmword [ebp - 0x6c], xmm0
cmovae edx, dword [ebp - 0x44]
mov ecx, edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f3c7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x6c]
call fcn.00402b80
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40f412
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f408
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc9b
push ecx
push edx
call fcn.004fb0f1
add esp, 8
push 0x7c
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.004fd0d0
add esp, 0xc
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x40f459
lea ecx, [ebp - 0x2cc]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f440
sub ecx, edx
lea eax, [ebp - 0x2cc]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.00482bf0
lea ecx, [ebp - 0x17c]
call fcn.0040e8c0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 6
xorps xmm0, xmm0
mov byte [ebp - 0x1f], 0xd8
xor ecx, ecx
movq qword [ebp - 0x1e], xmm0
mov word [ebp - 0x16], 0
nop
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 1
jb 0x40f480
mov dword [0x55d620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x130], xmm0
mov dword [ebp - 0x120], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x11c], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f4c0
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.00402b80
push 0x12
mov byte [ebp - 4], 7
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 0x10
push 0
cmovae eax, dword [ebp - 0x130]
push 0
push 0x52e500
mov dword [ebp - 0xb4], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, 0xffffffff
jne 0x40f534
xorps xmm0, xmm0
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
jmp 0x40f545
push ecx
mov edx, eax
lea ecx, [ebp - 0x148]
call fcn.0040e6c0
add esp, 4
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov byte [ebp - 0x1f], 0xd8
xor ecx, ecx
movq qword [ebp - 0x1e], xmm0
mov word [ebp - 0x16], 0
nop dword [eax]
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 1
jb 0x40f560
mov dword [0x55d620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x108], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x104], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f5a0
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x118]
call fcn.00402b80
mov byte [ebp - 4], 9
lea eax, [ebp - 0x118]
cmp dword [ebp - 0x104], 0x10
xorps xmm0, xmm0
mov byte [ebp - 0x1f], 0xd8
cmovae eax, dword [ebp - 0x118]
xor ecx, ecx
mov dword [ebp - 0x54], eax
movq qword [ebp - 0x1e], xmm0
mov word [ebp - 0x16], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 1
jb 0x40f5e8
mov dword [0x55d620], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1f]
mov byte [ebp - 0x1e], 0
movups xmmword [ebp - 0x100], xmm0
mov dword [ebp - 0xf0], 0
lea edx, [ecx + 1]
mov dword [ebp - 0xec], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f623
sub ecx, edx
lea eax, [ebp - 0x1f]
push ecx
push eax
lea ecx, [ebp - 0x100]
call fcn.00402b80
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x100]
cmp dword [ebp - 0xec], 0x10
cmovae edx, dword [ebp - 0x100]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f660
sub ecx, esi
mov eax, closesocket
mov esi, dword [ebp - 0xc0]
sub eax, esi
cmp eax, ecx
jb 0x40fc91
cmp dword [ebp - 0xbc], 0x10
lea eax, [ebp - 0xd0]
push ecx
cmovae eax, dword [ebp - 0xd0]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xb0]
call fcn.0048aa20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
mov edx, dword [ebp - 0xa0]
cmovae ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x5c]
sub eax, edx
mov dword [ebp - 0x48], edx
push edi
push ecx
cmp edi, eax
ja 0x40f709
cmp dword [ebp - 0x9c], 0x10
lea esi, [ebp - 0xb0]
lea eax, [edi + edx]
cmovae esi, dword [ebp - 0xb0]
mov dword [ebp - 0xa0], eax
lea eax, [esi + edx]
push eax
call fcn.004fcb50
mov ecx, dword [ebp - 0x48]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0xb0]
jmp 0x40f71c
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x48]
push edi
call fcn.00488e80
mov esi, dword [ebp - 0x6c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
push dword [ebp - 0x54]
call fcn.00482d20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x160]
call fcn.0048a830
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xe
call fcn.00482d20
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
push eax
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xe8]
call fcn.0048a830
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x40f832
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f828
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x14c]
cmp ecx, 0x10
jb 0x40f870
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f866
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x40f8c6
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f8bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40f8fe
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f8f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x40f94e
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f944
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0xec]
cmp ecx, 0x10
jb 0x40f9a7
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f99d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x17
mov ecx, dword [ebp - 0x104]
cmp ecx, 0x10
jb 0x40f9e5
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f9db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x134]
cmp ecx, 0x10
jb 0x40fa23
mov edx, dword [ebp - 0x148]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0x10
jb 0x40fa61
mov edx, dword [ebp - 0x130]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa57
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x168]
cmp ecx, 0x10
jb 0x40fa9f
mov edx, dword [ebp - 0x17c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fa95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc96
push ecx
push edx
call fcn.004fb0f1
add esp, 8
cmp dword [ebp - 0xd4], 0x10
lea eax, [ebp - 0xe8]
push dword [ebp - 0xd8]
cmovae eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0x250]
xorps xmm0, xmm0
mov dword [ebp - 0x16c], 0
push eax
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
movups xmmword [ebp - 0x90], xmm0
mov byte [ebp - 0x70], 0
movups xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x250], 0x67452301
mov dword [ebp - 0x24c], 0xefcdab89
mov dword [ebp - 0x248], 0x98badcfe
mov dword [ebp - 0x244], 0x10325476
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x1b4], 0
call fcn.0049ecc0
push ecx
lea ecx, [ebp - 0x250]
call fcn.0049ed90
cmp byte [ebp - 0x1b4], 0
je 0x40fb76
movups xmm0, xmmword [ebp - 0x1a3]
mov al, byte [ebp - 0x183]
mov byte [ebp - 0x70], al
movups xmmword [ebp - 0x90], xmm0
movups xmm0, xmmword [ebp - 0x193]
movups xmmword [ebp - 0x80], xmm0
mov edi, dword [ebp - 0xb8]
lea ecx, [ebp - 0x90]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fba0
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
mov ecx, edi
call fcn.00402b80
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0x10
jb 0x40fbf2
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fbe8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc9b
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
cmp eax, 0x10
jb 0x40fc3c
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x40fc32
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc9b
push ecx
push esi
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0x10
jb 0x40fc72
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc68
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fc9b
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00500390
call fcn.00500390
call fcn.004023f0
call fcn.00500390
call fcn.00500390
int3