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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302b4
call fcn.004666e0
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
mov word [esp + 0x102c8], ax
lea eax, [esp + 0x102ca]
push eax
call fcn.00456fd0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004019d1
lea ecx, [esp + 0x48]
call fcn.004019d1
lea ecx, [esp + 0x38]
call fcn.004019d1
lea ecx, [esp + 0x28]
call fcn.004019d1
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
push 0x46df88
call fcn.0041345d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x7fff
push ecx
call fcn.00412bb1
pop ecx
push eax
lea eax, [esp + 0x2c8]
push eax
call fcn.0045704a
xor eax, eax
add esp, 0xc
mov word [esp + 0x102be], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0x104
push ecx
call fcn.00412bb1
pop ecx
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0045704a
xor eax, eax
mov word [esp + 0x2c4], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add esp, 0xc
call fcn.00412bb1
push eax
call fcn.0040f873
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
pop ecx
mov dword [esp + 0x24], esi
call fcn.00412be5
xor ecx, ecx
push 0x46e064
push esi
mov word [esi + eax*2], cx
call fcn.00457f48
pop ecx
pop ecx
test eax, eax
je 0x41ef0b
push eax
lea eax, [esp + 0x2c]
call fcn.0040214f
push 0x473734
lea edx, [esp + 0x2c]
call fcn.004220c8
push 0x473738
lea edx, [esp + 0x2c]
mov edi, eax
call fcn.004220c8
mov ebx, eax
cmp edi, 0xffffffff
je 0x41ef8a
cmp ebx, 0xffffffff
je 0x41ef8a
cmp ebx, edi
jb 0x41ef8a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
call fcn.0040400a
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00401a27
mov eax, ebx
lea ecx, [esp + 0x28]
sub eax, edi
push ecx
dec eax
lea ebx, [edi + 1]
lea ecx, [esp + 0x4c]
call fcn.0040490c
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.0040400a
mov edi, 0x46e064
push edi
call fcn.00401a27
push edi
push 0
call fcn.00457f48
pop ecx
pop ecx
test eax, eax
jne 0x41ee69
mov ebx, dword [ebp + 0xc]
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00401a27
xor esi, esi
inc esi
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x41ef48
lea eax, [esp + 0x10]
call fcn.0040202d
cmp word [eax], 0x7c
jne 0x41ef41
lea eax, [esp + 0x10]
call fcn.0040202d
xor ecx, ecx
mov word [eax], cx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x41ef24
push dword [esp + 0x24]
call fcn.0045526c
cmp dword [ebp + 0x14], 6
pop ecx
jb 0x41ef67
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
call fcn.00412de6
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x14], 5
jb 0x41efab
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.00412bb1
push eax
lea eax, [esp + 0x102c4]
push eax
call fcn.004555f7
pop ecx
pop ecx
jmp 0x41efb5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.00418aa2
mov dword [eax + 0x14], 2
lea eax, [esi + 4]
jmp 0x41f165
xor eax, eax
mov word [esp + 0x102c0], ax
push 0x58
pop edi
push edi
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00456fd0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x102cc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x80], eax
add esp, 0xc
lea eax, [esp + 0xb0]
xor edi, edi
cmp dword [ebp + 0x14], 4
mov dword [esp + 0x78], 0xffff
mov dword [esp + 0x84], eax
jb 0x41f0b1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
cmp eax, 0x1f
jg 0x41f0b1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
test eax, eax
js 0x41f0b1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, 0x80004
call fcn.00412c92
test al, 0x10
je 0x41f054
add edi, 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
test al, 8
je 0x41f069
or edi, 0x2000
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
test al, 4
je 0x41f07e
or edi, 0x200
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
test al, 2
je 0x41f093
or edi, 0x800
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00412c92
test al, 1
je 0x41f0a8
or edi, 0x1000
mov dword [esp + 0x8c], edi
jmp 0x41f0bc
mov dword [esp + 0x8c], 0x80004
cmp byte [ebp + 0x18], 0
lea eax, [esp + 0x58]
push eax
je 0x41f135
call dword [0x46b0c0]
test eax, eax
je 0x41f14d
push dword [esp + 0x74]
test edi, 0x200
je 0x41f143
call fcn.00455251
pop ecx
push dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.0040214f
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*2 + 2]
jmp 0x41f125
push eax
call fcn.00455251
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [esp], 0x46e064
call fcn.00401a27
push dword [esp + 0x74]
call fcn.00401a27
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*2 + 2]
mov dword [esp + 0x74], eax
cmp word [eax], 0
jne 0x41f0fc
push dword [esp + 0x38]
jmp 0x41f143
call dword [0x46b0bc]
test eax, eax
je 0x41f14d
push dword [esp + 0x74]
mov edi, dword [ebp + 0x10]
call fcn.0041345d
jmp 0x41f16e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
add edi, ecx
lea eax, [edi + 4]
call fcn.00418aa2
mov dword [eax + 0x14], esi
lea eax, [edi + 4]
call fcn.00418aa2
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.00401a04
lea ecx, [esp + 0x38]
call fcn.00401a04
lea ecx, [esp + 0x48]
call fcn.00401a04
lea ecx, [esp + 0x10]
call fcn.00401a04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14