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

Disassembly:
push 0xffffffffffffffff
push 0x6285eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50c
mov eax, dword [esp + 0x51c]
push ebx
push ebp
push esi
mov si, word [eax + 0x14]
lea ebx, [eax + 0x14]
mov ecx, esi
mov eax, 0x66666667
and ecx, 0xffff
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebp, edx
mov ecx, 0xa
cdq
idiv ecx
xor eax, eax
mov dword [esp + 0x34], ebp
mov al, byte [ebx + 0x1a]
mov dword [esp + 0x20], edx
xor edx, edx
and eax, 0xff
mov dword [esp + 0x18], edx
jle 0x4d7cbf
lea ecx, [ebx + 0x1b]
cmp word [ecx], 0
jne 0x4d7cb5
inc edx
add ecx, 2
dec eax
jne 0x4d7cae
mov dword [esp + 0x18], edx
cmp si, 0x96
jae 0x4d8007
xor edx, edx
mov ecx, 0xced988
mov dx, word [ebx + 2]
push edx
call fcn.0053bf30
test eax, eax
je 0x4d8007
mov eax, dword [0x62d4c4]
push edi
add eax, 0x3e
push eax
call fcn.00575a50
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0xd2], ecx
mov dword [esp + 0xd6], ecx
add esp, 4
mov dword [esp + 0xd6], ecx
lea esi, [esp + 0x54]
mov byte [esp + 0xda], cl
mov ecx, 0x4c
lea edi, [esp + 0x3ec]
mov dword [esp + 0x3e8], eax
lea edx, [esp + 0x3e8]
lea eax, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x28], 0
call fcn.00474ae0
mov ecx, eax
xor esi, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x78]
cmp ecx, esi
mov dword [esp + 0x40], edx
jle 0x4d7f4a
mov ecx, dword [esp + 0x24]
lea eax, [ebp + ebp*4]
lea eax, [ecx + eax*2]
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [edx*8 + 0xceda6c]
mov dword [esp + 0x18], eax
jmp 0x4d7d8a
xor esi, esi
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x1fe], ecx
mov dword [esp + 0x202], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x206], ecx
lea esi, [esp + 0x184]
mov byte [esp + 0x20a], cl
mov ecx, 0x4c
lea edi, [esp + 0x2b8]
mov dword [esp + 0x2b4], eax
lea edx, [esp + 0x2b4]
lea eax, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
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 + 0x40], edx
jle 0x4d7ec7
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
xor eax, eax
mov ax, word [ebx + 2]
xor ecx, ecx
mov dword [ebp - 4], eax
mov cl, byte [ebx + 0x19]
mov eax, dword [esp + 0x24]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
xor ecx, ecx
mov dword [ebp + 8], eax
mov cx, word [ebx + 0x2f]
mov dword [ebp + 0x10], ecx
lea edi, [ebp + 0x24]
mov ecx, 0x12
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
xor edx, edx
movsb byte es:[edi], byte [esi]
mov dl, byte [ebx + 0x1a]
xor eax, eax
mov ah, dl
mov edx, dword [esp + 0x1c]
or eax, edx
inc ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0x1fe], ecx
mov word [ebp + 0x3d], ax
mov dword [esp + 0x202], ecx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x206], ecx
mov byte [esp + 0x20a], cl
mov ecx, 0x4c
lea esi, [esp + 0x184]
lea edi, [esp + 0x2b8]
mov dword [esp + 0x2b4], eax
lea edx, [esp + 0x2b4]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, 0xced988
add ebp, 0x88
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x74]
cmp ecx, edx
jl 0x4d7dff
mov edi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0xce], edx
mov ebp, dword [esp + 0x20]
add edi, 0x550
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0xd2], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0xd6], edx
mov ecx, 0x4c
lea esi, [esp + 0x54]
lea edi, [esp + 0x3ec]
mov byte [esp + 0xda], dl
mov dword [esp + 0x3e8], eax
lea eax, [esp + 0x3e8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4c]
push eax
inc ebp
push ecx
mov ecx, 0xced988
mov dword [esp + 0x28], ebp
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x78]
cmp ebp, ecx
jl 0x4d7d88
xor esi, esi
mov edi, 0x65ace4
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x17]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x28], dl
push ecx
push 0x65ace4
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call fcn.00435a70
mov eax, dword [0xa4f274]
mov dword [esp + 0x524], esi
cmp eax, esi
pop edi
je 0x4d7fa4
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x4d7f9a
mov eax, 0x62d4bc
push esi
push eax
call fcn.00586e90
add esp, 8
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x4d7fb1
mov eax, 0x62d4bc
mov ecx, dword [esp + 0x2c]
push esi
push esi
push esi
push ecx
push eax
call fcn.004cbc90
add esp, 0x14
mov ecx, 0xcfa698
push 1
push esi
call fcn.00557b50
call fcn.00512a50
call fcn.00512590
mov ecx, 0xced988
call fcn.0052d360
mov ecx, dword [esp + 0x28]
cmp ecx, esi
je 0x4d8007
mov al, byte [ecx - 1]
test al, al
je 0x4d7ffd
cmp al, 0xff
je 0x4d7ffd
dec al
mov byte [ecx - 1], al
jmp 0x4d8007
dec ecx
push ecx
call fcn.006066eb
add esp, 4
mov ecx, dword [esp + 0x518]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x518
ret