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

Disassembly:
push 0xffffffffffffffff
push 0x516222
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x55ec90]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
cmp byte [eax + 0x45], 0
je 0x40cabd
push 0x54ec3c
lea ecx, [esp + 0x20]
call dword [0x518314]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0
call fcn.00401200
push 0x5563e0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x518e64
call fcn.004ab42a
lea esi, [esp + 0x78]
mov ebp, eax
call fcn.0040ce30
mov ecx, dword [ebp]
cmp byte [ecx + 0x45], 0
je 0x40cad6
mov edi, dword [ebp + 8]
jmp 0x40caf5
mov edx, dword [ebp + 8]
cmp byte [edx + 0x45], 0
je 0x40cae3
mov edi, ecx
jmp 0x40caf5
mov eax, dword [esp + 0x7c]
mov edi, dword [eax + 8]
lea edx, [eax + 8]
cmp eax, ebp
jne 0x40cb7f
cmp byte [edi + 0x45], 0
mov esi, dword [ebp + 4]
jne 0x40cb01
mov dword [edi + 4], esi
mov eax, dword [0x5624a8]
cmp dword [eax + 4], ebp
jne 0x40cb10
mov dword [eax + 4], edi
jmp 0x40cb1b
cmp dword [esi], ebp
jne 0x40cb18
mov dword [esi], edi
jmp 0x40cb1b
mov dword [esi + 8], edi
mov edx, dword [0x5624a8]
cmp dword [edx], ebp
jne 0x40cb4c
cmp byte [edi + 0x45], 0
je 0x40cb2f
mov ecx, esi
jmp 0x40cb4a
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
mov ecx, edi
jne 0x40cb4a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x45], 0
je 0x40cb40
mov dword [edx], ecx
mov eax, dword [0x5624a8]
cmp dword [eax + 8], ebp
jne 0x40cbdf
cmp byte [edi + 0x45], 0
je 0x40cb6d
mov ecx, dword [0x5624a8]
mov eax, esi
mov dword [ecx + 8], eax
jmp 0x40cbdf
mov eax, edi
call fcn.0040cf30
mov ecx, dword [0x5624a8]
mov dword [ecx + 8], eax
jmp 0x40cbdf
mov dword [ecx + 4], eax
mov ecx, dword [ebp]
mov dword [eax], ecx
cmp eax, dword [ebp + 8]
jne 0x40cb90
mov esi, eax
jmp 0x40cba9
cmp byte [edi + 0x45], 0
mov esi, dword [eax + 4]
jne 0x40cb9c
mov dword [edi + 4], esi
mov dword [esi], edi
mov ecx, dword [ebp + 8]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [0x5624a8]
cmp dword [ecx + 4], ebp
jne 0x40cbb9
mov dword [ecx + 4], eax
jmp 0x40cbc7
mov ecx, dword [ebp + 4]
cmp dword [ecx], ebp
jne 0x40cbc4
mov dword [ecx], eax
jmp 0x40cbc7
mov dword [ecx + 8], eax
mov ecx, dword [ebp + 4]
mov dword [eax + 4], ecx
lea ecx, [ebp + 0x44]
add eax, 0x44
cmp eax, ecx
je 0x40cbdf
mov bl, byte [ecx]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
mov ebx, 1
cmp byte [ebp + 0x44], bl
jne 0x40ccde
mov edx, dword [0x5624a8]
cmp edi, dword [edx + 4]
je 0x40ccdb
lea esp, [esp]
cmp byte [edi + 0x44], bl
jne 0x40ccdb
mov ecx, dword [esi]
cmp edi, ecx
jne 0x40cc6d
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x44], 0
jne 0x40cc29
mov byte [ecx + 0x44], bl
mov ecx, esi
mov byte [esi + 0x44], 0
call fcn.0040cd50
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x45], 0
jne 0x40cc9c
mov eax, dword [ecx]
cmp byte [eax + 0x44], bl
jne 0x40cc3e
mov edx, dword [ecx + 8]
cmp byte [edx + 0x44], bl
je 0x40cc98
mov edx, dword [ecx + 8]
cmp byte [edx + 0x44], bl
jne 0x40cc55
mov byte [eax + 0x44], bl
mov byte [ecx + 0x44], 0
call fcn.0040cda0
mov ecx, dword [esi + 8]
mov dl, byte [esi + 0x44]
mov byte [ecx + 0x44], dl
mov byte [esi + 0x44], bl
mov eax, dword [ecx + 8]
mov ecx, esi
mov byte [eax + 0x44], bl
call fcn.0040cd50
jmp 0x40ccdb
cmp byte [ecx + 0x44], 0
jne 0x40cc83
mov byte [ecx + 0x44], bl
mov ecx, esi
mov byte [esi + 0x44], 0
call fcn.0040cda0
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
jne 0x40cc9c
mov eax, dword [ecx + 8]
cmp byte [eax + 0x44], bl
jne 0x40ccb1
mov edx, dword [ecx]
cmp byte [edx + 0x44], bl
jne 0x40ccb1
mov byte [ecx + 0x44], 0
mov eax, dword [0x5624a8]
mov edi, esi
mov esi, dword [esi + 4]
cmp edi, dword [eax + 4]
jne 0x40cc00
jmp 0x40ccdb
mov edx, dword [ecx]
cmp byte [edx + 0x44], bl
jne 0x40ccc6
mov byte [eax + 0x44], bl
mov byte [ecx + 0x44], 0
call fcn.0040cd50
mov ecx, dword [esi]
mov dl, byte [esi + 0x44]
mov byte [ecx + 0x44], dl
mov byte [esi + 0x44], bl
mov eax, dword [ecx]
mov ecx, esi
mov byte [eax + 0x44], bl
call fcn.0040cda0
mov byte [edi + 0x44], bl
lea esi, [ebp + 0xc]
mov dword [esp + 0x18], esi
lea ecx, [esi + 0x1c]
mov dword [esp + 0x6c], ebx
call dword [0x518308]
mov ecx, esi
mov dword [esp + 0x6c], 0xffffffff
call dword [0x518308]
push ebp
call fcn.004ab3bc
add esp, 4
cmp dword [0x5624ac], 0
jbe 0x40cd1a
sub dword [0x5624ac], ebx
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x562490]
mov dword [edx + 4], eax
mov dword [edx], ecx
mov eax, edx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc