Function at 0x4037f8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c08
push ebx
push esi
push edi
lea edi, [ebp - 0xc]
mov ecx, 8
rdtsc
imul eax, eax, 0x18d
stosb byte es:[edi], al
dec ecx
jne 0x40380e
mov edx, dword [ebx + 0x3b70]
add edx, dword [edx + 0x60]
mov dword [ebp - 0x994], edx
lea edi, [ebp - 0x16e8]
mov edx, dword [ebp - 0x994]
add edx, 0x364
push 0x400
push edx
push edi
call fcn.00405283
and eax, eax
js 0x403ce6
push 0
push 0
push 0
push 0
push edi
call dword [ebx + 0x3b4a]
or eax, eax
je 0x403ce6
mov dword [ebp - 0x1c08], eax
lea ecx, [ebp - 0x1c00]
lea esi, [ebp - 0x1bf0]
mov dword [ecx], 0x100
push ecx
push esi
call dword [ebx + 0x390e]
xor edx, edx
lodsw ax, word [esi]
add dl, al
rol edx, 0x11
lodsw ax, word [esi]
or al, al
jne 0x403888
mov dword [ebp - 0x19f0], edx
lea edx, [ebp - 0xae8]
mov eax, dword [ebp - 0x994]
add eax, 0x43e
push 0x100
push eax
push edx
call fcn.00405283
and eax, eax
js 0x403ce6
lea eax, [ebp - 0xae8]
lea edx, [ebp - 0x1af0]
lea ecx, [ebp - 0x19ec]
push 0
push 0
push 0
push 0
push ecx
push 0x100
push edx
push eax
call dword [ebx + 0x3936]
lea edi, [ebp - 0x16e8]
mov edx, dword [ebp - 0x994]
add edx, 0x446
push 0x400
push edx
push edi
call fcn.00405283
and eax, eax
js 0x403ce6
lea edx, [ebp - 0x9d8]
mov eax, dword [ebp - 0x994]
add eax, 0x47c
push 0x100
push eax
push edx
call fcn.00405283
mov edi, dword [ebp - 0x994]
add edi, 0x826
mov esi, edi
xor eax, eax
mov dword [ebp - 4], eax
or ecx, 0xffffffff
repne scasd eax, dword es:[edi]
not ecx
dec ecx
je 0x403985
xor edi, edi
inc edi
lodsd eax, dword [esi]
lodsd eax, dword [esi]
or eax, eax
je 0x403985
add eax, dword [ebp - 0x994]
lea edx, [ebp - 0x12e8]
push 0x100
push eax
push edx
call fcn.00405283
or eax, eax
je 0x403ce6
lea edx, [ebp - 0x12e8]
push edx
call fcn.00404296
or eax, eax
jne 0x403982
inc edi
jmp 0x40394a
mov dword [ebp - 4], edi
call fcn.00403df7
lea edx, [ebp - 0x19e8]
lea ecx, [ebp - 0x9d8]
lea edi, [ebp - 0x16e8]
push dword [ebp - 4]
push eax
push dword [ebp + 0x10]
push ecx
push dword [ebp - 0x19ec]
push dword [ebp - 0x19f0]
push edi
push edx
call dword [ebx + 0x3a96]
add esp, 0x20
lea edx, [ebp - 0x19e8]
lea edi, [ebp - 0x18e8]
push 0
push 0
push 0x100
push edi
push eax
push edx
push 0
push 0
call dword [ebx + 0x395e]
mov dword [ebp - 0x998], eax
lea edi, [ebp - 0x18e8]
xor ecx, ecx
mov byte [edi + eax], cl
mov eax, dword [ebp + 0x14]
and eax, eax
je 0x403a0a
push eax
push edi
call dword [ebx + 0x396a]
push edi
call dword [ebx + 0x397a]
mov dword [ebp - 0x998], eax
lea edx, [ebp - 0x18e8]
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10c]
push ecx
push eax
push dword [ebp - 0x998]
push edx
call fcn.00403d94
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x12e8]
push 8
push edx
push ecx
call fcn.004053bc
lea ecx, [ebp - 0x12e8]
add ecx, 8
lea edx, [ebp - 0x18e8]
push dword [ebp - 0x998]
push edx
push ecx
call fcn.004053bc
lea edi, [ebp - 0x990]
mov edx, dword [ebp - 0x994]
add edx, 0xb88
push 0x800
push edx
push edi
call fcn.00405283
push edi
push edi
call fcn.004053df
mov ecx, dword [ebp - 0x998]
add ecx, 8
lea esi, [ebp - 0x12e8]
lea edi, [ebp - 0x16e8]
push ebx
lea ebx, [ebp - 0x990]
rdtsc
mov dword [ebp - 0x190], eax
xor eax, eax
lodsb al, byte [esi]
shl eax, 1
mov dh, byte [ebx + eax]
mov dl, byte [ebx + eax + 1]
mov byte [edi], dh
mov byte [edi + 1], dl
add edi, 2
mov eax, dword [ebp - 0x190]
imul eax, eax, 0x2f7
ror eax, 1
mov dword [ebp - 0x190], eax
mov edx, eax
and edx, 5
jne 0x403afd
and eax, 0xa
je 0x403ad6
mov al, 0x2d
jmp 0x403ad8
mov al, 0x5f
cmp byte [edi - 1], 0x2d
je 0x403afd
cmp byte [edi - 1], 0x5f
je 0x403afd
cmp byte [edi - 2], 0x2d
je 0x403afd
cmp byte [edi - 2], 0x5f
je 0x403afd
cmp byte [edi - 3], 0x2d
je 0x403afd
cmp byte [edi - 3], 0x5f
je 0x403afd
stosb byte es:[edi], al
dec ecx
jne 0x403a9e
pop ebx
xor eax, eax
stosb byte es:[edi], al
lea edi, [ebp - 0xee8]
push dword [ebp + 8]
push edi
call fcn.004053df
lea edx, [ebp - 0xad8]
mov eax, dword [ebp - 0x994]
add eax, 0x48e
push 0x100
push eax
push edx
call fcn.00405283
and eax, eax
js 0x403ce6
lea edx, [ebp - 0xad8]
push edx
push edx
call fcn.004053df
lea eax, [ebp - 0xad8]
push eax
push edi
call dword [ebx + 0x396a]
mov edi, dword [ebp - 0x994]
add edi, 0xf8a
mov esi, edi
xor eax, eax
or ecx, 0xffffffff
repne scasd eax, dword es:[edi]
not ecx
dec ecx
je 0x403bb3
rdtsc
shr eax, 1
cmp eax, ecx
jae 0x403b6f
mov esi, dword [esi + eax*4]
add esi, dword [ebp - 0x994]
lea eax, [ebp - 0x18c]
push 0x100
push esi
push eax
call fcn.00405283
and eax, eax
js 0x403ce6
lea edi, [ebp - 0x18c]
push edi
push edi
call fcn.004053df
lea edx, [ebp - 0xee8]
push edi
push edx
call dword [ebx + 0x396a]
lea eax, [ebp - 0x16e8]
lea edi, [ebp - 0xee8]
push eax
push edi
call dword [ebx + 0x396a]
mov edi, dword [ebp - 0x994]
add edi, 0xf94
mov esi, edi
xor eax, eax
or ecx, 0xffffffff
repne scasd eax, dword es:[edi]
not ecx
dec ecx
je 0x403c27
rdtsc
shr eax, 1
cmp eax, ecx
jae 0x403be3
mov esi, dword [esi + eax*4]
add esi, dword [ebp - 0x994]
lea eax, [ebp - 0x14c]
push 0x100
push esi
push eax
call fcn.00405283
and eax, eax
js 0x403ce6
lea edi, [ebp - 0x14c]
push edi
push edi
call fcn.004053df
lea edx, [ebp - 0xee8]
push edi
push edx
call dword [ebx + 0x396a]
lea edi, [ebp - 0xee8]
push 0
push 0x80000000
push 0
push 0
push edi
push dword [ebp - 0x1c08]
call dword [ebx + 0x3b4e]
and eax, eax
je 0x403ce6
mov dword [ebp - 0x1c04], eax
push 0
push 2
push 0
push 0
push dword [ebp - 0x1c04]
call dword [ebx + 0x3b56]
cmp eax, 0xffffffff
je 0x403ce6
inc eax
mov dword [ebp - 0x1bfc], eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c04]
call dword [ebx + 0x3b56]
push 4
push 0x1000
push dword [ebp - 0x1bfc]
push 0
call dword [ebx + 0x3952]
or eax, eax
je 0x403ce6
mov dword [ebp - 0x1bf4], eax
lea eax, [ebp - 0x1bf8]
push eax
push dword [ebp - 0x1bfc]
push dword [ebp - 0x1bf4]
push dword [ebp - 0x1c04]
call dword [ebx + 0x3b52]
or eax, eax
je 0x403ce6
mov eax, dword [ebp - 0x1bf8]
and eax, eax
jne 0x403ca6
mov edi, dword [ebp - 0x1bf4]
mov eax, dword [ebp - 0x1bfc]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x403d0e
or edi, 0xffffffff
cmp dword [ebp - 0x1bf4], 0
je 0x403d05
push 0x8000
push 0
push dword [ebp - 0x1bf4]
call dword [ebx + 0x395a]
cmp dword [ebp - 0x1c04], 0
je 0x403d1a
push dword [ebp - 0x1c04]
call dword [ebx + 0x3b46]
cmp dword [ebp - 0x1c08], 0
je 0x403d2f
push dword [ebp - 0x1c08]
call dword [ebx + 0x3b46]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10