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

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
test esi, esi
je 0x4d9547
push 0
mov ecx, esi
mov byte [esi + 8], 1
call fcn.004e6977
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x64]
push 0
push dword [edi + 0x7c]
mov dword [edi + 0x58], ecx
mov dword [edi + 4], ecx
lea ecx, [edi + 8]
mov dword [edi + 0x54], eax
mov dword [edi], eax
call fcn.004e7ee1
mov ecx, dword [edi + 0x7c]
lea eax, [edi + 0x18]
mov edx, dword [eax + 4]
mov esi, dword [eax]
mov dword [esp + 0x14], edx
sub dword [esp + 0x14], esi
sar dword [esp + 0x14], 4
cmp ecx, dword [esp + 0x14]
jae 0x4d958d
shl ecx, 4
add ecx, esi
mov dword [eax + 4], ecx
jmp 0x4d95ce
jbe 0x4d95ce
mov eax, dword [eax + 8]
sub eax, esi
sar eax, 4
cmp ecx, eax
jbe 0x4d95ad
lea eax, [esp + 0x1b]
push eax
lea eax, [edi + 0x18]
push ecx
mov ecx, eax
call fcn.004da1d8
jmp 0x4d95ce
sub ecx, dword [esp + 0x14]
je 0x4d95c8
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
add edx, 0x10
sub ecx, 1
jne 0x4d95b5
lea eax, [edi + 0x18]
mov dword [eax + 4], edx
mov esi, dword [esp + 0x20]
mov ecx, edi
push dword [edi + 0x6c]
test esi, esi
mov dword [edi + 0x8c], 0x989680
mov dword [edi + 0x90], 0x3e8
setne al
mov byte [edi + 0x78], 0
mov byte [edi + 0x79], al
mov al, byte [esp + 0x28]
mov byte [edi + 0x88], al
call fcn.004e5d1a
test al, al
je 0x4d9781
test esi, esi
je 0x4d977f
push dword [edi + 0x7c]
mov ecx, esi
call fcn.004e6977
xor eax, eax
mov ecx, eax
mov dword [esp + 8], ecx
cmp dword [edi + 0x7c], eax
jbe 0x4d9704
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov esi, ecx
mov edx, dword [edi + 0x2c]
and ecx, 0x1f
shr esi, 5
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
inc eax
shl eax, cl
test dword [edx + esi*4], eax
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
je 0x4d96ac
mov edx, dword [esp + 0x14]
mov byte [ecx + eax + 0x10], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esp + 0x24]
mov ecx, dword [edx + eax]
mov edx, dword [edx + eax + 4]
mov eax, dword [esi + 0xc]
mov dword [edi + eax], ecx
mov ecx, edi
mov edi, dword [esp + 0x10]
mov dword [ecx + eax + 4], edx
mov eax, dword [edi + 0x3c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, dword [edx + eax + 8]
mov edx, dword [edx + eax + 0xc]
mov eax, dword [esi + 0xc]
mov dword [edi + eax + 8], ecx
mov edi, dword [esp + 0x10]
jmp 0x4d96e0
mov byte [ecx + eax + 0x10], 0
mov eax, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x60]
mov dword [esi + eax], ecx
mov ecx, esi
mov esi, dword [esp + 0x20]
mov dword [ecx + eax + 4], edx
mov eax, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x60]
mov dword [esi + eax + 8], ecx
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x24], 0x14
add dword [esp + 0x14], 0x10
mov dword [ecx + eax + 0xc], edx
mov ecx, dword [esp + 8]
inc ecx
mov dword [esp + 8], ecx
cmp ecx, dword [edi + 0x7c]
jb 0x4d9639
mov eax, dword [edi + 0x54]
mov ecx, dword [edi + 0x58]
mov dword [esi + 4], ecx
lea ecx, [esi + 0x18]
mov dword [esi], eax
mov eax, dword [edi + 0x54]
mov edx, dword [edi + 0x58]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edi, dword [esi + 0xc]
add esi, 0x20
push esi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.004dc293
mov esi, dword [esp + 0x20]
mov byte [esi + 0x28], al
lea ecx, [esi + 0x2c]
mov eax, dword [edi + 8]
add esi, 0x34
mov edx, dword [edi + 0xc]
mov edi, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
mov eax, dword [edi + 0x5c]
mov edx, dword [edi + 0x60]
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.004dc293
mov esi, dword [esp + 0x20]
mov byte [esi + 0x3c], al
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x60]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], edx
mov ecx, dword [edi + 0x5c]
mov edx, dword [edi + 0x60]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
mov al, 1
pop edi
pop esi
add esp, 0x14
ret 8