Function at 0x40cf00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x856518]
sub esp, 0x2c
push ebx
mov ebx, 1
push esi
cmp eax, ebx
push edi
mov esi, ecx
je 0x40d42b
call fcn.00458260
push eax
call fcn.004161a0
add esp, 4
test al, al
je 0x40d42b
lea eax, [esi + 0x758]
push eax
mov dword [esp + 0x14], eax
call fcn.004589c0
add esp, 4
test eax, eax
je 0x40d1d3
mov eax, dword [esi + 0x76c]
or edi, 0xffffffff
cmp eax, edi
mov dword [esp + 0xc], 0
je 0x40cf7c
mov ecx, dword [esi + 0x76c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00407b70
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
jne 0x40cf81
mov eax, 0x89fe30
mov eax, dword [eax]
cmp eax, edi
je 0x40d12a
test eax, eax
jl 0x40d42b
cmp eax, ebx
jg 0x40d42b
mov edx, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.005dd7a0
mov eax, dword [esp + 0xc]
mov cx, word [0x83f43c]
mov word [eax], cx
call fcn.00477ca0
cmp byte [eax + 0xc], bl
jne 0x40d013
mov ecx, dword [0x85fd18]
mov eax, dword [str.TDBERR]
cmp ecx, 0x183f
jle 0x40cff4
mov edx, dword [0x85fd0c]
mov ecx, dword [edx + 0x60fc]
test ecx, ecx
je 0x40cff4
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push eax
lea eax, [esp + 0x14]
push str._s___s._n
push eax
call fcn.005ddb30
add esp, 0x10
jmp 0x40d0e9
mov eax, dword [esi + 0x76c]
mov dword [esp + 0x14], 0
cmp eax, edi
je 0x40d041
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
push edx
call fcn.00407b70
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d041
mov ebx, dword [eax]
jmp 0x40d047
mov ebx, dword [0x89fe34]
mov eax, dword [0x85fd18]
mov edi, dword [str.TDBERR]
cmp eax, 0x183c
jle 0x40d06f
mov eax, dword [0x85fd0c]
mov ecx, dword [eax + 0x60f0]
test ecx, ecx
je 0x40d06f
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov edi, dword [eax]
mov eax, dword [0x85fd18]
mov esi, dword [str.TDBERR]
cmp eax, 0x183f
jle 0x40d097
mov eax, dword [0x85fd0c]
mov ecx, dword [eax + 0x60fc]
test ecx, ecx
je 0x40d097
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, dword [eax]
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0041df90
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00477ca0
mov ecx, eax
call fcn.00474bd0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push eax
push edi
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push edx
push esi
push str._s___s___s__s__s._n
push eax
call fcn.005ddb30
add esp, 0x1c
lea ecx, [esp + 0x18]
call fcn.005dd990
lea ecx, [esp + 0x1c]
call fcn.005dd990
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x855edc]
push edx
mov dword [esp + 0x30], 0x3f333333
mov dword [esp + 0x34], 0x3f333333
mov dword [esp + 0x38], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 0xc]
call fcn.005dd990
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.005dd7a0
mov ecx, dword [esp + 0xc]
mov dx, word [0x83f43c]
mov word [ecx], dx
mov ecx, dword [0x85fd18]
mov eax, dword [str.TDBERR]
cmp ecx, 0x183f
jle 0x40d178
mov ecx, dword [0x85fd0c]
mov ecx, dword [ecx + 0x60fc]
test ecx, ecx
je 0x40d178
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push eax
lea eax, [esp + 0x14]
push str._s___s._n
push eax
call fcn.005ddb30
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0xc]
mov dword [esp + 0x2c], 0x3f333333
push 0
push 0
push ecx
mov ecx, dword [0x855edc]
push edx
mov dword [esp + 0x40], 0x3f333333
mov dword [esp + 0x44], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 0xc]
call fcn.005dd990
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [esi + 0x76c]
or edi, 0xffffffff
cmp eax, edi
mov dword [esp + 0x14], 0
je 0x40d204
mov ecx, dword [esi + 0x76c]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00407b70
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x40d209
mov eax, 0x89fe30
mov eax, dword [eax]
cmp eax, edi
je 0x40d389
test eax, eax
jl 0x40d42b
cmp eax, ebx
jg 0x40d42b
mov edx, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
call fcn.005dd7a0
mov eax, dword [esp + 0xc]
mov cx, word [0x83f43c]
mov word [eax], cx
call fcn.00477ca0
cmp byte [eax + 0xc], bl
jne 0x40d29b
mov ecx, dword [0x85fd18]
mov eax, dword [str.TDBERR]
cmp ecx, 0x1828
jle 0x40d27c
mov edx, dword [0x85fd0c]
mov ecx, dword [edx + 0x60a0]
test ecx, ecx
je 0x40d27c
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov edx, dword [ecx]
push edx
push 0x7f54d0
push eax
call fcn.005ddb30
add esp, 0x10
jmp 0x40d348
mov eax, dword [esi + 0x76c]
mov dword [esp + 0x14], 0
cmp eax, edi
je 0x40d2c9
lea ecx, [esp + 0x14]
mov edx, eax
push ecx
push edx
call fcn.00407b70
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x40d2c9
mov edi, dword [eax]
jmp 0x40d2cf
mov edi, dword [0x89fe34]
mov eax, dword [0x85fd18]
mov esi, dword [str.TDBERR]
cmp eax, 0x183a
jle 0x40d2f7
mov eax, dword [0x85fd0c]
mov ecx, dword [eax + 0x60e8]
test ecx, ecx
je 0x40d2f7
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov esi, dword [eax]
lea eax, [esp + 0x18]
push edi
push eax
call fcn.0041df90
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00477ca0
mov ecx, eax
call fcn.00474bd0
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push eax
push esi
mov edx, dword [ecx]
lea eax, [esp + 0x18]
push edx
push str._s__s__s__s_n
push eax
call fcn.005ddb30
add esp, 0x18
lea ecx, [esp + 0x1c]
call fcn.005dd990
lea ecx, [esp + 0x18]
call fcn.005dd990
push 0
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [0x855edc]
push edx
mov dword [esp + 0x3c], 0x3f333333
mov dword [esp + 0x40], 0x3f333333
mov dword [esp + 0x44], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 0xc]
call fcn.005dd990
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
mov eax, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.005dd7a0
mov ecx, dword [esp + 0xc]
mov dx, word [0x83f43c]
mov word [ecx], dx
mov ecx, dword [0x85fd18]
mov eax, dword [str.TDBERR]
cmp ecx, 0x1828
jle 0x40d3d7
mov ecx, dword [0x85fd0c]
mov ecx, dword [ecx + 0x60a0]
test ecx, ecx
je 0x40d3d7
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push ecx
push 0x7f54d0
push edx
call fcn.005ddb30
add esp, 0x10
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0x3f333333
push 0
push 0
push eax
push ecx
mov ecx, dword [0x855edc]
mov dword [esp + 0x34], 0x3f333333
mov dword [esp + 0x38], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 0xc]
call fcn.005dd990
pop edi
pop esi
pop ebx
add esp, 0x2c
ret