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

Disassembly:
sub esp, 0x4f8
push ebx
mov ebx, dword [esp + 0x500]
push esi
push edi
lea eax, [ebx + 0x14]
push 0xe
mov esi, dword [eax]
mov dword [esp + 0x14], esi
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov dx, word [eax + 8]
mov word [esp + 0x1c], dx
call fcn.00613321
mov edi, eax
xor eax, eax
mov ecx, edi
add ebx, 0x1e
mov edx, edi
add esp, 4
mov dword [ecx], eax
and esi, 0xffff
push 1
push esi
mov dword [ecx + 4], eax
mov dword [esp + 0x30], edi
mov dword [ecx + 8], eax
mov word [ecx + 0xc], ax
mov eax, dword [ebx]
mov dword [edx], eax
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov eax, dword [ebx + 8]
mov dword [edx + 8], eax
mov cx, word [ebx + 0xc]
mov word [edx + 0xc], cx
mov ecx, 0xced988
call fcn.0053cd60
mov esi, dword [esp + 0x12]
mov ebx, 0xa
mov ecx, esi
and ecx, 0xffff
mov eax, ecx
cdq
idiv ebx
mov eax, 0x66666667
mov dword [esp + 0x20], edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ax, si
cmp ax, 0xc8
mov dword [esp + 0x24], edx
jae 0x4d1bee
test ax, ax
jbe 0x4d1c29
mov ebx, dword [esp + 0x16]
xor ecx, ecx
mov dword [esp + 0xb6], ecx
and ebx, 0xffff
mov dword [esp + 0xba], ecx
lea esi, [esp + 0x3c]
mov dword [esp + 0xbe], ecx
lea edi, [esp + 0x3d4]
mov byte [esp + 0xc2], cl
mov ecx, 0x4c
mov dword [esp + 0x3d0], ebx
lea edx, [esp + 0x3d0]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], ebx
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x78]
test ecx, ecx
mov dword [esp + 0x30], edx
jle 0x4d1c29
push ebp
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0x1ea], eax
lea esi, [esp + 0x170]
mov dword [esp + 0x1ee], eax
lea edi, [esp + 0x2a4]
mov dword [esp + 0x1f2], eax
mov dword [esp + 0x2a0], ebx
mov byte [esp + 0x1f6], al
lea edx, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2a0]
xor ebp, ebp
push ecx
push edx
mov ecx, 0xced988
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x74]
test ecx, ecx
mov dword [esp + 0x34], edx
jle 0x4d1b76
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
and eax, 0xffff
add eax, ebx
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
mov edx, eax
shl edx, 4
add edx, eax
lea ebx, [edx*8 + 0xceda9c]
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x2a0], edx
mov eax, ecx
mov esi, edi
mov edi, ebx
add ebx, 0x88
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x2a0]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea esi, [esp + 0x174]
mov dword [esp + 0x1ee], ecx
lea edi, [esp + 0x2a8]
mov dword [esp + 0x1f2], ecx
inc ebp
mov dword [esp + 0x1f6], ecx
mov byte [esp + 0x1fa], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, 0xced988
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x74]
cmp ebp, ecx
jl 0x4d1adf
mov ebx, dword [esp + 0x20]
xor edx, edx
mov ebp, dword [esp + 0x10]
mov dword [esp + 0xba], edx
mov ecx, 0x4c
mov dword [esp + 0xbe], edx
lea esi, [esp + 0x40]
mov dword [esp + 0xc2], edx
lea edi, [esp + 0x3d8]
mov byte [esp + 0xc6], dl
mov dword [esp + 0x3d4], ebx
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x3d4]
lea ecx, [esp + 0x14]
push eax
inc ebp
push ecx
mov ecx, 0xced988
mov dword [esp + 0x18], ebp
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x78]
cmp ebp, ecx
jl 0x4d1a49
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4f8
ret
lea eax, [esi - 0xc8]
or ecx, 0xffffffff
and eax, 0xffff
lea edx, [eax*8]
sub edx, eax
lea eax, [eax + edx*4]
lea edx, [eax*4 + 0xcf2a3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x4f8
ret