Function at 0x40e4d3
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x20
cmp dword [0x680868], eax
je 0x40e4e6
inc eax
leave
ret
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov ecx, dword [esi + 0x18]
push edi
test ecx, ecx
je 0x40e540
mov edi, 0x20202020
mov edx, ecx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x40e533
lea eax, [ecx + edx]
mov ecx, dword [eax + 0xc]
add ecx, edx
mov ebx, dword [ecx]
or ebx, edi
cmp ebx, 0x6c64746e
jne 0x40e533
mov ecx, dword [ecx + 4]
or ecx, edi
cmp ecx, 0x6c642e6c
je 0x40e53c
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x40e502
test eax, eax
jne 0x40e547
xor eax, eax
jmp 0x40e977
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
add ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
and dword [ebp - 4], 0
lea ecx, [ecx + esi*4 - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
mov ebx, 0x45a914
mov edi, 0x45a90c
mov esi, str.9967
mov eax, dword [ecx]
add eax, edx
mov ecx, 0x775a
cmp word [eax], cx
jne 0x40e665
push eax
call fcn.0040e347
mov ecx, dword [ebp - 4]
mov dword [ecx*8 + 0x68086c], eax
mov dword [esp], 0x45a928
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [esp], 0x45a930
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [esp], 0x45a938
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [esp], str.6786
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [esp], str.5668
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [esp], str.2618
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
add eax, ecx
push ebx
mov dword [ebp - 0x10], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
add eax, ecx
push edi
mov dword [ebp - 0x10], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x10]
add eax, ecx
push esi
mov dword [ebp - 0x10], eax
call fcn.00412e44
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2 - 2]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 4]
add esp, 0x10
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1f4
mov dword [ecx*8 + 0x680870], eax
je 0x40e67b
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
dec dword [ebp - 8]
sub ecx, 4
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], ecx
jne 0x40e57c
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
lea eax, [ecx - 1]
mov dword [0x680868], ecx
test eax, eax
jbe 0x40e974
and dword [ebp - 8], 0
mov eax, ecx
sub eax, dword [ebp - 4]
dec eax
je 0x40e965
mov eax, 0x680878
mov dword [ebp - 0xc], eax
mov edx, dword [eax - 8]
mov dword [ebp - 0x1c], edx
cmp edx, dword [eax]
jbe 0x40e94d
mov eax, dword [eax - 0xc]
push 0x45a928
mov dword [ebp - 0x18], eax
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], 0x45a930
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], 0x45a938
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], str.6786
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], str.5668
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], str.2618
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push ebx
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push edi
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push esi
mov dword [ebp - 0x20], eax
call fcn.00412e44
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax*8 + 0x680874]
push 0x45a928
mov dword [ecx - 0xc], eax
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push 0x45a930
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push 0x45a938
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push str.6786
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push str.5668
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push str.2618
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push ebx
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push edi
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push esi
mov dword [ebp - 0x20], eax
call fcn.00412e44
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
push 0x45a928
mov dword [eax*8 + 0x680870], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push 0x45a930
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push 0x45a938
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add esp, 0x40
sub ecx, eax
push str.6786
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], str.5668
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [esp], str.2618
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push ebx
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push edi
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push esi
mov dword [ebp - 0x20], eax
call fcn.00412e44
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
push str.2618
mov dword [eax*8 + 0x680874], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push ebx
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push edi
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push esi
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
sub ecx, eax
push 0x45a928
mov dword [ebp - 0x20], ecx
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push 0x45a930
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push 0x45a938
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push str.6786
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x20]
add eax, ecx
push str.5668
mov dword [ebp - 0x20], eax
call fcn.00412e44
mov ecx, dword [ebp - 0x1c]
add esp, 0x34
add eax, dword [ebp - 0x20]
mov dword [eax*8 + 0x680878], ecx
mov ecx, dword [0x680868]
mov eax, dword [ebp - 0xc]
inc dword [ebp - 8]
mov edx, ecx
sub edx, dword [ebp - 4]
add eax, 8
dec edx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], edx
jb 0x40e6ab
inc dword [ebp - 4]
lea eax, [ecx - 1]
cmp dword [ebp - 4], eax
jb 0x40e693
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret