Function at 0x40d714
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [esp + 0xb0]
push esi
push edi
push dword [esp + 0xbc]
push ebp
call fcn.0040ddfe
add esp, 8
test eax, eax
je 0x40dab6
xor eax, eax
mov word [esp + 0x8c], ax
mov byte [esp + 0x38], al
mov byte [esp + 0x6c], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x5a], al
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], 0x65006b
mov dword [esp + 0x7c], 0x6e0072
mov dword [esp + 0x80], 0x6c0065
mov dword [esp + 0x84], 0x320033
mov dword [esp + 0x88], 0x64002e
mov dword [esp + 0x8c], 0x6c006c
mov dword [esp + 0x30], 0x74726956
mov dword [esp + 0x34], 0x416c6175
mov dword [esp + 0x38], 0x636f6c6c
mov dword [esp + 0x24], 0x74726956
mov dword [esp + 0x28], 0x466c6175
mov dword [esp + 0x2c], 0x656572
mov dword [esp + 0x60], 0x4d746547
mov dword [esp + 0x64], 0x6c75646f
mov dword [esp + 0x68], 0x6e614865
mov dword [esp + 0x6c], 0x41656c64
mov dword [esp + 0x40], 0x64616f4c
mov dword [esp + 0x44], 0x7262694c
mov dword [esp + 0x48], 0x45797261
mov word [esp + 0x4c], 0x4178
mov dword [esp + 0x18], 0x65657246
mov dword [esp + 0x1c], 0x7262694c
mov dword [esp + 0x20], 0x797261
mov dword [esp + 0x50], 0x50746547
mov dword [esp + 0x54], 0x41636f72
mov dword [esp + 0x58], 0x65726464
mov word [esp + 0x5c], 0x7373
call fcn.0040deaa
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0x94], eax
test eax, eax
je 0x40dab6
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0xa4], eax
test eax, eax
je 0x40dab6
lea eax, [esp + 0x5c]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0xa0], eax
test eax, eax
je 0x40dab6
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0xb0], eax
test eax, eax
je 0x40dab6
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0x90], eax
test eax, eax
je 0x40dab6
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.0040dac5
mov dword [esp + 0x98], eax
test eax, eax
je 0x40dab6
mov edx, dword [ebp + 0x3c]
mov eax, 0xe0
mov cx, word [edx + ebp + 0x14]
lea ebx, [edx + ebp]
sub cx, ax
movzx edi, cx
movzx ecx, word [ebx + 6]
lea eax, [edx + edi]
lea edx, [ebp + 0xf8]
add edx, eax
mov eax, dword [ebx + 0x50]
xor esi, esi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xac], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0xa8], ecx
test ecx, ecx
jle 0x40d9a7
mov ebp, dword [ebx + 0x38]
mov ebx, dword [esp + 0x70]
xor eax, eax
lea eax, [eax + eax*4]
mov edi, dword [edx + eax*8 + 8]
cmp dword [edx + eax*8 + 0x10], edi
lea ecx, [edx + eax*8]
mov eax, edi
cmova eax, dword [ecx + 0x10]
dec eax
add eax, dword [ecx + 0xc]
xor edx, edx
add eax, ebp
div ebp
imul eax, ebp
cmp ebx, eax
ja 0x40d979
cmp dword [ecx + 0x10], edi
mov eax, dword [ecx + 0xc]
cmova edi, dword [ecx + 0x10]
dec eax
add eax, edi
add eax, ebp
xor edx, edx
div ebp
mov ebx, eax
imul ebx, ebp
mov edx, dword [esp + 0x10]
inc esi
movzx eax, si
cmp eax, dword [esp + 0xa8]
jl 0x40d93c
mov ebp, dword [esp + 0xb8]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x9c]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x40dab6
push dword [esp + 0x94]
add eax, 4
push eax
push dword [ebx + 0x34]
call fcn.0040dbe5
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40dab6
movzx ecx, word [ebx + 6]
lea ecx, [ecx + ecx*4]
lea edx, [edi + ecx*8]
mov ecx, dword [ebp + 0x3c]
add ecx, 0xf8
add ecx, edx
push ecx
push ebp
push esi
call fcn.0040dba6
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x40da36
mov ecx, dword [esp + 0x10]
movzx eax, di
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 0x10]
test edx, edx
je 0x40da2f
mov ecx, dword [ecx + eax*8 + 0xc]
test ecx, ecx
je 0x40da2b
push edx
mov edx, dword [esp + 0x14]
mov eax, dword [edx + eax*8 + 0x14]
add eax, ebp
push eax
lea eax, [ecx + esi]
push eax
call fcn.0040dba6
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc edi
cmp di, word [ebx + 6]
jb 0x40d9fd
push esi
call fcn.0040dd65
add esp, 4
test eax, eax
je 0x40daa7
push dword [esp + 0x98]
mov edi, dword [esp + 0xa4]
mov ebp, dword [esp + 0x94]
push edi
push ebp
push dword [esp + 0xbc]
push esi
call fcn.0040dc5a
add esp, 0x14
test eax, eax
je 0x40daa7
mov eax, 0x2000
test word [ebx + 0x16], ax
jne 0x40da88
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 8
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40da79
push 0
push 1
add eax, esi
push esi
call eax
test eax, eax
jne 0x40da79
push ebp
push edi
push esi
call fcn.0040dc0d
add esp, 0xc
push 0x8000
push 0
push esi
call dword [esp + 0xb0]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xa4
ret 8