Function at 0x40ca40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x474
mov eax, dword [0x5dca44]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
mov ebx, dword [0x5e34ec]
xor ecx, ecx
xor edx, edx
mov eax, ebx
test eax, eax
push esi
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], edx
je 0x40ca8e
lea ecx, [ecx]
mov eax, dword [eax + 0x38]
add ecx, 1
test eax, eax
jne 0x40ca80
mov dword [esp + 0x34], ecx
test ebx, ebx
jne 0x40cab4
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0049c81f
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x30], ecx
jge 0x40ccc3
mov eax, dword [ebx]
test eax, eax
je 0x40cca1
push 1
push eax
push ebx
call fcn.00409f70
add esp, 0xc
cmp eax, 3
jne 0x40caf1
mov ecx, eax
mov edi, 0x5b1c50
lea esi, [ebx + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40caf1
mov ebx, dword [ebx + 0x38]
jmp 0x40ccbb
mov ecx, dword [ebx]
push ecx
push str.__Checking_feature__s
call fcn.0040d100
mov edx, dword [ebx + 0x34]
push 0
push 0
push edx
call fcn.005013e0
mov eax, dword [ebx + 8]
add esp, 0x14
test eax, eax
je 0x40cb24
push eax
mov eax, dword [ebx + 0x34]
push 0x23
push eax
call fcn.004f0a80
add esp, 0xc
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x34]
push ecx
push edx
call fcn.004f5a50
add esp, 8
cmp dword [ebx + 8], 0
mov esi, eax
je 0x40cb4e
mov eax, dword [ebx + 0x34]
push 0x5a964f
push 0x23
push eax
call fcn.004f0a80
add esp, 0xc
test esi, esi
je 0x40ccb3
mov ecx, dword [ebx]
lea edx, [esp + 0x50]
mov edi, 1
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
test al, al
jne 0x40cb61
mov ecx, dword [ebx + 4]
push ecx
call fcn.0049b1a6
fstp qword [esp + 0x4c]
mov byte [esp + 0x74], 0
mov ecx, dword [ebx + 8]
add esp, 4
test ecx, ecx
je 0x40cb9c
lea edx, [esp + 0x70]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
add ecx, edi
add edx, edi
test al, al
jne 0x40cb90
mov eax, dword [ebx + 0x20]
cmp eax, edi
mov esi, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x38]
jne 0x40cbe4
lea edx, [esp + 0x50]
push esi
push edx
call fcn.00407960
fld qword [esp + 0x50]
add esp, 8
push 0
push 0x5b1c50
push edi
push 0
push 0
push 2
push esi
sub esp, 8
lea eax, [esp + 0x74]
fstp qword [esp]
push eax
call fcn.00408810
add esp, 0x28
mov esi, eax
jmp 0x40cc86
cmp byte [esp + 0x70], 0
je 0x40cc2a
push 0x401
mov dword [esp + 0x3c], edi
call fcn.0049b535
push 0x400
lea ecx, [esp + 0x78]
push ecx
push eax
mov dword [esp + 0x4c], eax
call fcn.0049b230
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x64]
push esi
push eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.00407890
add esp, 0x1c
jmp 0x40cc48
lea ecx, [esp + 0x50]
push esi
push ecx
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0
call fcn.00407960
add esp, 8
fld qword [esp + 0x48]
push 0
push 0x5b1c50
push edi
push 0
lea edx, [esp + 0x48]
push edx
push 0
push 2
push esi
sub esp, 8
lea eax, [esp + 0x78]
fstp qword [esp]
push eax
call fcn.004099f0
mov esi, eax
mov eax, dword [esp + 0x68]
add esp, 0x2c
test eax, eax
je 0x40cc86
push eax
call fcn.0049b3e3
add esp, 4
test esi, esi
je 0x40ccb6
push 0
push 0x5b1c50
push 0
call fcn.0040bd40
add esp, 0xc
add dword [esp + 0x2c], edi
jmp 0x40ccb6
push str._none_
push str.__Checking_feature__s
call fcn.0040d100
add esp, 8
mov ebx, dword [ebx + 0x38]
add dword [esp + 0x30], 1
test ebx, ebx
jne 0x40cab0
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049c81f
mov esp, ebp
pop ebp
ret