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

Disassembly:
push 0xffffffffffffffff
push 0x6285cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c8
mov eax, dword [esp + 0x6d8]
push ebx
push ebp
push esi
mov si, word [eax + 0x14]
lea ebx, [eax + 0x14]
mov ecx, esi
mov eax, 0x66666667
and ecx, 0xffff
push edi
imul ecx
sar edx, 2
mov eax, edx
xor edi, edi
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebp, edx
mov ecx, 0xa
cdq
idiv ecx
xor eax, eax
mov dword [esp + 0x54], ebp
mov al, byte [ebx + 0x1a]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
xor edx, edx
and eax, 0xff
mov dword [esp + 0x50], edx
jle 0x4d74a5
lea ecx, [ebx + 0x1b]
cmp word [ecx], di
jne 0x4d749b
inc edx
add ecx, 2
dec eax
jne 0x4d7495
mov dword [esp + 0x50], edx
cmp si, 0x96
jae 0x4d7c1d
xor edx, edx
mov ecx, 0xced988
mov dx, word [ebx + 2]
push edx
call fcn.0053bf30
test eax, eax
je 0x4d7c1d
cmp dword [0xcf4750], edi
je 0x4d74db
mov ecx, 0xced988
call fcn.0052dec0
mov eax, dword [0x62d4c4]
add eax, 0x3e
push eax
call fcn.00575a50
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x15a], ecx
mov dword [esp + 0x15e], ecx
mov dword [esp + 0x48], edi
mov dword [esp + 0x162], ecx
add esp, 4
mov byte [esp + 0x162], cl
mov ecx, 0x4c
lea esi, [esp + 0xdc]
lea edi, [esp + 0x340]
mov dword [esp + 0x33c], eax
lea edx, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x60]
push edx
push eax
mov ecx, 0xced988
call fcn.00474ae0
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x2c], edx
call fcn.0045bbb0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x4d77c6
mov eax, dword [esp + 0x40]
lea edx, [ebp + ebp*4]
lea eax, [eax + edx*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*8 + 0xceda6c]
mov dword [esp + 0x28], edx
xor ecx, ecx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x286], ecx
mov dword [esp + 0x28a], ecx
lea esi, [esp + 0x20c]
mov dword [esp + 0x28e], ecx
lea edi, [esp + 0x474]
mov byte [esp + 0x292], cl
mov ecx, 0x4c
mov dword [esp + 0x470], eax
lea edx, [esp + 0x470]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x3c], 0
call fcn.00474ae0
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov edx, dword [eax + 4]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], edx
call fcn.0045bbb0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x74]
test ecx, ecx
jle 0x4d7722
mov ebp, dword [esp + 0x28]
xor edx, edx
xor ecx, ecx
mov dx, word [ebx + 2]
lea edi, [ebp + 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebp]
mov cl, byte [ebx + 0x19]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
xor ecx, ecx
mov dword [ebp + 8], eax
mov cx, word [ebx + 0x2f]
mov esi, ebx
mov dword [ebp + 0x10], ecx
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
xor edx, edx
xor eax, eax
movsb byte es:[edi], byte [esi]
mov dl, byte [ebx + 0x1a]
mov esi, dword [esp + 0x50]
xor ecx, ecx
mov ah, dl
mov edx, dword [esp + 0x34]
mov dword [esp + 0x286], ecx
or eax, esi
mov dword [esp + 0x28a], ecx
mov word [ebp + 0x3d], ax
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x28e], ecx
inc edx
mov byte [esp + 0x292], cl
mov dword [esp + 0x34], edx
mov ecx, 0x4c
lea esi, [esp + 0x20c]
lea edi, [esp + 0x474]
mov dword [esp + 0x470], eax
lea edx, [esp + 0x470]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x68]
push edx
push eax
mov ecx, 0xced988
add ebp, 0x88
call fcn.00474ae0
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov edx, dword [eax + 4]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], edx
call fcn.0045bbb0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x74]
cmp edx, ecx
jl 0x4d7633
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
add ecx, 0x550
xor eax, eax
mov dword [esp + 0x28], ecx
mov ax, word [ebx + 2]
xor ecx, ecx
lea esi, [esp + 0xdc]
mov dword [esp + 0x156], ecx
lea edi, [esp + 0x340]
mov dword [esp + 0x15a], ecx
mov dword [esp + 0x33c], eax
mov dword [esp + 0x15e], ecx
lea edx, [esp + 0x33c]
mov byte [esp + 0x162], cl
mov ecx, 0x4c
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x60]
inc ebp
push edx
push eax
mov ecx, 0xced988
mov dword [esp + 0x4c], ebp
call fcn.00474ae0
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x2c], edx
call fcn.0045bbb0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x78]
cmp ebp, ecx
jl 0x4d759a
mov dl, byte [esp + 0x3b]
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], dl
call fcn.00409ab0
mov edi, 0x65acd8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.0040c6a0
test al, al
je 0x4d781f
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, ecx
mov esi, 0x65acd8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [0xa4f274]
mov dword [esp + 0x6e0], 0
test eax, eax
je 0x4d784b
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4d7840
mov eax, 0x62d4bc
push 0
push eax
call fcn.00586e90
add esp, 8
xor edx, edx
xor eax, eax
mov ax, word [ebx + 2]
mov dword [esp + 0x156], edx
mov dword [esp + 0x15a], edx
mov ecx, 0x4c
mov dword [esp + 0x15e], edx
lea esi, [esp + 0xdc]
lea edi, [esp + 0x340]
mov byte [esp + 0x162], dl
mov dword [esp + 0x33c], eax
lea edx, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x33c]
push ecx
push edx
mov ecx, 0xced988
call fcn.00474ae0
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov edx, dword [eax + 4]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x68]
mov dword [esp + 0x2c], edx
call fcn.0045bbb0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
lea edi, [eax + 0x10]
mov dword [esp + 0x4c], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
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
mov eax, dword [0xa4f274]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x4d7909
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.00586da0
add esp, 8
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xdb], 0
repne scasb al, byte es:[edi]
mov edx, dword [0x62d4c0]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x4d7936
call fcn.0060844a
test esi, esi
jbe 0x4d797a
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [eax + esi]
push ebp
call fcn.0040c6a0
test al, al
je 0x4d797a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x78]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.0040c060
xor eax, eax
xor ecx, ecx
mov cx, word [ebx + 2]
mov dword [esp + 0x156], eax
mov dword [esp + 0x15a], eax
mov dword [esp + 0x5a4], ecx
mov dword [esp + 0x15e], eax
mov ecx, 0x4c
lea esi, [esp + 0xdc]
lea edi, [esp + 0x5a8]
mov byte [esp + 0x162], al
lea edx, [esp + 0x5a4]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x48]
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 + 0x108]
cmp ecx, 1
mov dword [esp + 0x5c], edx
jle 0x4d7bce
mov edi, 0x65acd4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x78]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x62d4c0]
sub ecx, edx
cmp ecx, esi
ja 0x4d7a36
call fcn.0060844a
test esi, esi
jbe 0x4d7a7c
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebp, [edx + esi]
push ebp
call fcn.0040c6a0
test al, al
je 0x4d7a7c
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x78]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x3c]
xor edx, edx
mov dx, word [ebx + 0x19]
push 0xa
sub edx, eax
test edx, edx
jle 0x4d7a9d
xor edx, edx
lea ecx, [esp + 0x7c]
mov dl, byte [ebx + 0x19]
push ecx
sub edx, eax
push edx
jmp 0x4d7aa8
xor ecx, ecx
lea eax, [esp + 0x7c]
mov cl, byte [ebx + 0x19]
push eax
push ecx
call fcn.0061d6c5
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0xdb], 0
mov edx, dword [0x62d4c0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x18]
sub edx, ecx
cmp edx, esi
ja 0x4d7ae0
call fcn.0060844a
test esi, esi
jbe 0x4d7b26
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [eax + esi]
push ebx
call fcn.0040c6a0
test al, al
je 0x4d7b26
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x78]
lea edi, [eax + edx]
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 + 0x14]
mov dword [esp + 0x18], ebx
mov byte [eax + ebx], 0
mov edi, 0x65ab9c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
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
mov eax, dword [0xa4f274]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4d7b64
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.00586e90
add esp, 8
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
mov eax, dword [0x62d4c0]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4d7b88
call fcn.0060844a
test esi, esi
jbe 0x4d7bce
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
lea ebx, [edx + esi]
push ebx
call fcn.0040c6a0
test al, al
je 0x4d7bce
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, esi
lea esi, [esp + 0x78]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4d7bdb
mov eax, 0x62d4bc
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push edx
push eax
call fcn.004cbc90
add esp, 0x14
mov ecx, 0xced988
call fcn.0052d360
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4d7c1d
mov al, byte [ecx - 1]
test al, al
je 0x4d7c13
cmp al, 0xff
je 0x4d7c13
dec al
mov byte [ecx - 1], al
jmp 0x4d7c1d
dec ecx
push ecx
call fcn.006066eb
add esp, 4
mov ecx, dword [esp + 0x6d8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6d4
ret