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

Disassembly:
push 0xffffffffffffffff
push 0x6ed698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x7c]
push edi
call fcn.005ca5f0
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
xor ebx, ebx
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x40ec57
jmp 0x40ec40
lea ecx, [esp + 0x10]
mov byte [eax + 0x28], bl
call fcn.005da9a0
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jne 0x40ec40
lea ebp, [esi + 0x18]
mov ecx, ebp
call fcn.0040e440
lea ecx, [esp + 0x1c]
call fcn.0040c690
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x78]
push eax
mov ecx, esi
mov dword [esp + 0x74], ebx
call fcn.0040ccb0
mov ecx, dword [esp + 0x78]
push ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.0065c790
mov edx, dword [esp + 0x7c]
add esp, 4
push eax
push edx
lea ecx, [esp + 0x54]
call fcn.00404b60
mov edx, dword [edi + 4]
lea eax, [edi + 4]
lea ecx, [esp + 0x4c]
push ecx
push edx
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 1
mov dword [esp + 0x20], eax
call fcn.0040d370
push 1
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0040cea0
mov eax, dword [esp + 0x14]
mov dword [eax], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp dword [esp + 0x64], 0x10
mov byte [esp + 0x70], bl
jb 0x40ecff
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0065d0d4
add esp, 4
mov edi, dword [ebp + 4]
mov eax, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
push eax
push edi
mov ecx, ebp
call fcn.0040e480
push 1
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0040ce00
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea esp, [esp]
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0040e680
test al, al
jne 0x40ed30
lea ecx, [esp + 0x34]
call fcn.0040c690
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x70], 2
call fcn.0040c690
mov edi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 3
call fcn.0040c690
mov ebp, eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
cmp ecx, eax
mov byte [esp + 0x70], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x3e7
mov dword [esp + 0x78], ecx
je 0x40ee16
jmp 0x40eda5
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0x10]
lea edi, [ecx + 8]
push edx
push edi
push eax
mov ecx, esi
call fcn.0040c6e0
test al, al
je 0x40ee03
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jle 0x40ee03
mov ebp, dword [esp + 0x80]
cmp ebp, edi
mov dword [esp + 0x14], eax
je 0x40edff
mov edi, dword [edi + 4]
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
mov ecx, ebp
call fcn.005ca5f0
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x78]
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
push ecx
push edi
push edx
push eax
mov ecx, ebp
call fcn.0040d670
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
cmp eax, dword [esi + 0x1c]
mov dword [esp + 0x78], eax
jne 0x40eda1
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x80]
cmp dword [eax + 8], ebx
jle 0x40efa8
add esi, 0x24
cmp esi, eax
je 0x40ee63
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
mov ecx, esi
mov dword [esp + 0x78], eax
call fcn.005ca5f0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x84]
push edx
push ecx
push eax
mov ecx, esi
call fcn.0040d670
mov esi, dword [ebp]
cmp esi, ebp
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
je 0x40eea6
cmp dword [esi + 0x20], 0x10
mov edx, dword [esi]
mov dword [esp + 0x78], edx
jb 0x40ee88
mov eax, dword [esi + 0xc]
push eax
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
mov esi, dword [esp + 0x7c]
add esp, 4
cmp esi, ebp
jne 0x40ee70
push ebp
call fcn.0065d0d4
mov esi, dword [edi]
add esp, 4
cmp esi, edi
mov dword [edi], edi
mov dword [edi + 4], edi
je 0x40eef0
lea ebx, [ebx]
cmp dword [esi + 0x20], 0x10
mov ebp, dword [esi]
jb 0x40eed4
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp ebp, edi
mov esi, ebp
jne 0x40eec0
push edi
call fcn.0065d0d4
mov ebp, dword [esp + 0x3c]
mov esi, dword [ebp]
add esp, 4
cmp esi, ebp
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
je 0x40ef40
lea ebx, [ebx]
cmp dword [esi + 0x20], 0x10
mov edi, dword [esi]
jb 0x40ef24
mov edx, dword [esi + 0xc]
push edx
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x40ef10
push ebp
call fcn.0065d0d4
mov edi, dword [esp + 0x24]
mov esi, dword [edi]
add esp, 4
cmp esi, edi
mov dword [edi], edi
mov dword [edi + 4], edi
je 0x40ef88
cmp dword [esi + 0x20], 0x10
mov ebp, dword [esi]
jb 0x40ef6c
mov eax, dword [esi + 0xc]
push eax
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp ebp, edi
mov esi, ebp
jne 0x40ef58
push edi
call fcn.0065d0d4
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc
mov esi, dword [ebp]
cmp esi, ebp
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
je 0x40efeb
cmp dword [esi + 0x20], 0x10
mov ecx, dword [esi]
mov dword [esp + 0x78], ecx
jb 0x40efcd
mov edx, dword [esi + 0xc]
push edx
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
mov esi, dword [esp + 0x7c]
add esp, 4
cmp esi, ebp
jne 0x40efb5
push ebp
call fcn.0065d0d4
mov esi, dword [edi]
add esp, 4
cmp esi, edi
mov dword [edi], edi
mov dword [edi + 4], edi
je 0x40f030
nop
cmp dword [esi + 0x20], 0x10
mov ebp, dword [esi]
jb 0x40f014
mov eax, dword [esi + 0xc]
push eax
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp ebp, edi
mov esi, ebp
jne 0x40f000
push edi
call fcn.0065d0d4
mov ebp, dword [esp + 0x3c]
mov esi, dword [ebp]
add esp, 4
cmp esi, ebp
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
je 0x40f080
lea ebx, [ebx]
cmp dword [esi + 0x20], 0x10
mov edi, dword [esi]
jb 0x40f064
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x40f050
push ebp
call fcn.0065d0d4
mov ebp, dword [esp + 0x24]
mov esi, dword [ebp]
add esp, 4
cmp esi, ebp
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
je 0x40f0d0
lea ebx, [ebx]
cmp dword [esi + 0x20], 0x10
mov edi, dword [esi]
jb 0x40f0b4
mov edx, dword [esi + 0xc]
push edx
call fcn.0065d0d4
add esp, 4
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
push esi
mov byte [esi + 0xc], bl
call fcn.0065d0d4
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x40f0a0
push ebp
call fcn.0065d0d4
mov ecx, dword [esp + 0x6c]
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc