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

Disassembly:
push 0xffffffffffffffff
push 0x68bd60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x54]
cmp ebx, 1
mov dword [esp + 4], ecx
jl 0x4d6302
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x4d5fce
lea esi, [ecx + 0x148]
mov ebp, ebx
mov eax, dword [esi + 8]
test eax, eax
je 0x4d5fc8
mov ecx, dword [ecx + 0xd0]
push esi
call fcn.0040efa0
cmp eax, edi
jle 0x4d5fc4
mov edi, eax
mov ecx, dword [esp + 0x10]
add esi, 0x10
dec ebp
jne 0x4d5fab
mov eax, dword [ecx + ebx*4 + 0xcc]
lea esi, [ecx + 0xd0]
add eax, 0x80
add edi, 0x2a
mov ecx, dword [esi]
mov edx, dword [eax]
add ecx, 0x80
mov dword [esp + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov edx, ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [edx]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 4]
sub eax, ecx
mov ebp, dword [edx + 8]
add eax, 0xe
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0x58]
mov edx, dword [edx + 0xc]
lea ecx, [edi + ebp]
mov dword [esp + 0x24], edx
cmp ecx, dword [0x6e270c]
mov edx, dword [0x6e2710]
jge 0x4d6045
lea edi, [ebp + 0x1a]
add ecx, 0x1a
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], ecx
jmp 0x4d6053
mov ecx, ebp
mov dword [esp + 0x30], ebp
sub ecx, edi
mov dword [esp + 0x28], ecx
mov edi, ecx
mov ebp, dword [esp + 0x5c]
mov ecx, ebp
sub ecx, eax
test ecx, ecx
jle 0x4d6069
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ebp
jmp 0x4d6088
lea ecx, [eax + ebp]
cmp ecx, edx
jge 0x4d607c
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ecx
mov eax, ebp
jmp 0x4d608a
mov ecx, edx
mov dword [esp + 0x34], edx
sub ecx, eax
mov dword [esp + 0x2c], ecx
mov eax, ecx
mov ebp, dword [esp + 0x10]
push eax
push edi
mov ecx, ebp
mov edx, dword [ebp]
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [ebp]
sub ecx, edi
mov edi, dword [esp + 0x28]
sub edx, edi
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x30]
test ebx, ebx
jle 0x4d6194
lea edi, [ebp + 0x148]
mov dword [esp + 0x60], ebx
mov ecx, dword [esi]
test ecx, ecx
je 0x4d617f
lea eax, [ecx + 0x80]
mov edx, dword [ecx + 0x80]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0xc]
add edx, 0xfffffff8
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
call dword [eax + 0x28]
mov ecx, dword [esi]
test dword [ecx + 0x78], 0x800000
je 0x4d611f
mov eax, dword [ecx]
push edi
call dword [eax + 0x78]
jmp 0x4d617f
push edi
lea ecx, [esp + 0x1c]
push 0x6d53ec
push ecx
call fcn.004dbb40
add esp, 0xc
mov ecx, dword [esi]
push eax
mov dword [esp + 0x54], 0
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x1c]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x50], 0xffffffff
je 0x4d6173
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d6168
cmp al, 0xff
je 0x4d6168
dec al
mov byte [ecx], al
jmp 0x4d6173
push ecx
call fcn.006713a0
add esp, 4
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x60]
add esi, 4
add edi, 0x10
dec eax
mov dword [esp + 0x60], eax
jne 0x4d60c8
cmp ebx, 0x1e
jge 0x4d62db
lea eax, [ebp + ebx*4 + 0xd0]
mov dword [esp + 0x60], eax
mov eax, 0x1e
sub eax, ebx
mov dword [esp + 0x14], eax
mov cl, byte [esp + 0x58]
xor eax, eax
mov byte [esp + 0x18], cl
mov edi, 0x6dfe28
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], eax
mov ebp, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
call fcn.00403470
cmp eax, ebp
jae 0x4d61ea
call fcn.006713ab
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp edi, ebx
je 0x4d6214
mov al, byte [edi - 1]
test al, al
je 0x4d6214
cmp al, 0xff
je 0x4d6214
cmp ebp, ebx
jne 0x4d623d
dec al
push ebx
lea ecx, [esp + 0x1c]
mov byte [edi - 1], al
call fcn.004031c0
jmp 0x4d626c
cmp ebp, ebx
jne 0x4d6225
push 1
lea ecx, [esp + 0x1c]
call fcn.004031c0
jmp 0x4d626c
mov eax, dword [esp + 0x24]
cmp eax, 0x1f
ja 0x4d6232
cmp eax, ebp
jae 0x4d624b
push 1
lea ecx, [esp + 0x1c]
call fcn.004031c0
push ebp
lea ecx, [esp + 0x1c]
call fcn.00403480
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov esi, 0x6dfe28
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x54], 1
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], 0xffffffff
cmp eax, ebx
je 0x4d62b1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4d62a8
cmp al, 0xff
je 0x4d62a8
dec al
mov byte [ecx], al
jmp 0x4d62b1
push ecx
call fcn.006713a0
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], eax
jne 0x4d61b3
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x328]
lea eax, [esp + 0x28]
push eax
mov edx, dword [ecx]
call dword [edx + 0x28]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
pop edi
mov dword [ebp + 0x32c], ecx
mov dword [ebp + 0x330], edx
pop esi
pop ebp
mov ecx, dword [esp + 0x3c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 0xc