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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
and eax, 4
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
je 0x4e9e92
test word [ebx + 0x88], 0x112
je 0x4e9e92
mov eax, 0xc000000d
jmp 0x4ea2af
push esi
push edi
lea esi, [ebx + 0x18]
push esi
mov dword [ebp - 0x14], esi
call fcn.004f4720
mov eax, dword [ebx + 0x90]
xor edi, edi
cmp eax, edi
je 0x4e9ebe
push eax
lea eax, [ebp - 8]
push eax
call fcn.004f2c3c
cmp eax, edi
jge 0x4e9ec1
mov edi, eax
jmp 0x4e9eeb
mov dword [ebp - 8], edi
cmp dword [ebx + 0x94], edi
je 0x4e9f05
push 0x20206553
push 0xc
push 1
call fcn.00448568
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x4e9ef6
push dword [ebp - 8]
call fcn.004f2ce0
mov edi, 0xc000009a
push esi
call fcn.004f4a98
jmp 0x4e9f9e
mov esi, dword [ebx + 0x94]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
jmp 0x4e9f08
mov dword [ebp - 0x10], edi
push 0x64546553
push 0x38
push edi
call fcn.00448568
mov esi, eax
cmp esi, edi
jne 0x4e9f43
cmp dword [ebp - 0x10], edi
je 0x4e9f29
push edi
push dword [ebp - 0x10]
call fcn.00447ee0
push dword [ebp - 8]
call fcn.004f2ce0
push dword [ebp - 0x14]
call fcn.004f4a98
mov eax, 0xc000009a
jmp 0x4ea2ad
mov eax, dword [ebx + 0x58]
add eax, dword [ebp + 0x2c]
mov ebx, dword [ebx + 0x5c]
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 4], eax
add eax, 0xa0
push eax
push ebx
push eax
push edi
push dword [ebp + 0xc]
push edi
push dword [0x5a6f04]
push dword [ebp + 0xc]
call 0x4bdfb4
mov ebx, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jge 0x4e9fa5
push dword [ebp - 0x14]
call fcn.004f4a98
push dword [ebp - 8]
call fcn.004f2ce0
xor ebx, ebx
push ebx
push esi
call fcn.00447ee0
cmp dword [ebp - 0x10], ebx
je 0x4e9f9e
push ebx
push dword [ebp - 0x10]
call fcn.00447ee0
mov eax, edi
jmp 0x4ea2ad
lea eax, [ebx + 0x30]
push esi
mov dword [eax], esi
call 0x43234a
lea eax, [ebx + 0x40]
push eax
call fcn.0042ec32
lea eax, [ebx + 0x10]
push eax
call fcn.0042ec32
mov byte [ebx + 0x8c], 0
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call fcn.00432e7a
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebx + 0x18], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 0x2c], eax
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov ecx, dword [esi + 0x64]
mov dword [ebx + 0x64], ecx
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x4c], ecx
mov ecx, dword [esi + 0x48]
mov dword [ebx + 0x48], ecx
mov ecx, dword [esi + 0x38]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x50], eax
mov ecx, dword [esi + 0x54]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x58], ecx
mov ecx, dword [esi + 0x88]
and ecx, 0xfffffedf
test byte [ebp + 0x10], 2
mov dword [ebx + 0x88], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x90], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0x94], ecx
je 0x4ea06e
or dword [ebx + 0x88], 0x40
cmp dword [ebp - 0x1c], eax
je 0x4ea07a
or byte [ebx + 0x89], 1
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x80]
mov dword [ebx + 0x80], eax
mov eax, dword [esi + 0x84]
lea edi, [ebx + 0xa0]
push edi
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x74], edi
push dword [esi + 0x74]
push dword [esi + 0x54]
call fcn.004dfe42
mov eax, dword [esi + 0x54]
lea eax, [eax + eax*2]
shl eax, 2
sub dword [ebp - 4], eax
add edi, eax
mov eax, dword [esi + 0x50]
cmp eax, dword [ebp + 0x24]
ja 0x4ea0cc
mov eax, dword [ebp + 0x24]
mov ecx, dword [esi + 0x4c]
add ecx, eax
lea eax, [edi + ecx*8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
mov dword [ebx + 0x68], edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [esi + 0x68]
push dword [esi + 0x4c]
call fcn.004dfb3e
mov dword [ebp + 0x2c], eax
mov eax, dword [esi + 0x4c]
lea edi, [edi + eax*8]
mov eax, dword [ebp + 0x24]
test eax, eax
mov dword [ebx + 0x6c], edi
jbe 0x4ea164
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4ea12b
mov ecx, dword [ebp + 0x24]
push dword [ecx]
push 0
push eax
push dword [esi + 0x6c]
call fcn.004e9848
test al, al
je 0x4ea15b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push dword [ebp + 0x24]
push 1
call fcn.004dfb3e
mov ecx, dword [ebx + 0x6c]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x50]
add edi, 8
mov dword [ecx + eax*8 + 4], 7
inc dword [ebx + 0x50]
add dword [ebp + 0x24], 8
dec dword [ebp + 0xc]
jne 0x4ea110
mov eax, dword [esi + 0x70]
movzx edi, byte [eax + 1]
mov eax, dword [esi + 0x7c]
test eax, eax
lea edi, [edi*4 + 8]
je 0x4ea17f
movzx eax, word [eax + 2]
add edi, eax
push 0x64546553
push edi
push 1
call fcn.00448568
xor ecx, ecx
cmp eax, ecx
mov dword [ebp + 0x24], eax
mov dword [ebx + 0x78], eax
jne 0x4ea1c8
mov ecx, dword [esi + 0x30]
call fcn.004323ce
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4ea1c1
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x4ea1c1
mov cl, 1
mov byte [eax + 0x49], 1
call dword [fcn.0040110c]
mov esi, 0xc000009a
jmp 0x4ea200
cmp dword [esi + 0x50], ecx
je 0x4ea20e
cmp dword [ebx + 0x50], ecx
jne 0x4ea211
mov ecx, dword [esi + 0x30]
call fcn.004323ce
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4ea1fb
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x4ea1fb
mov cl, 1
mov byte [eax + 0x49], 1
call dword [fcn.0040110c]
mov esi, 0xc000000d
mov ecx, ebx
call fcn.004232ae
mov eax, esi
jmp 0x4ea2ad
cmp dword [ebx + 0x50], ecx
jbe 0x4ea21a
or dword [ebx + 0x88], 0x10
mov esi, dword [esi + 0x78]
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x7c]
test ecx, ecx
je 0x4ea243
sub ecx, dword [edx + 0x78]
add ecx, eax
mov dword [ebx + 0x7c], ecx
jmp 0x4ea247
and dword [ebx + 0x7c], 0
mov esi, dword [edx + 0x70]
mov ecx, dword [edx + 0x30]
sub esi, dword [edx + 0x78]
call fcn.004323ce
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4ea276
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x4ea276
mov cl, 1
mov byte [eax + 0x49], 1
call dword [fcn.0040110c]
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
push dword [ebp + 0x1c]
add esi, eax
push dword [ebp + 0x18]
mov dword [ebx + 0x70], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call fcn.004e98d4
lea eax, [ebx + 0x38]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4ea2a5
push 1
push eax
call 0x42f22a
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 0x2c