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

Disassembly:
sub esp, 0x5e4
push ebx
push ebp
mov ebp, dword [esp + 0x5f0]
push esi
mov eax, dword [ebp + 0x30]
lea ebx, [ebp + 0x14]
cmp eax, 0x1c9c380
ja 0x4c2669
mov eax, dword [ebp + 8]
mov si, word [ebx + 0x24]
cmp eax, 1
mov dword [esp + 0x28], esi
jne 0x4c1d1a
cmp si, 4
jne 0x4c1d1a
push ebp
call fcn.004d5020
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret
cmp si, 5
push edi
je 0x4c1d31
cmp si, 6
je 0x4c1d31
cmp si, 7
jne 0x4c1e1f
push 0
call fcn.004c0430
mov al, byte [0x68ef6c]
mov ecx, 0xf
mov byte [esp + 0x58], al
xor eax, eax
lea edi, [esp + 0x59]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
and eax, 0xffff
sub eax, 5
je 0x4c1d9b
dec eax
je 0x4c1d9b
dec eax
jne 0x4c1e1f
mov edi, 0x6596fc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
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 0x4c1dfd
jmp 0x4c1dee
mov eax, dword [0xa4f274]
lea edx, [esp + 0x54]
test eax, eax
jne 0x4c1dcc
mov edi, 0x6595d8
or ecx, 0xffffffff
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]
jmp 0x4c1dfd
mov edi, 0x6595ec
or ecx, 0xffffffff
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]
lea ecx, [esp + 0x54]
push 0
push ecx
call fcn.00586e90
add esp, 8
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
lea edx, [esp + 0x60]
push ecx
push edx
call fcn.004cbc90
add esp, 0x14
mov eax, dword [ebx + 0x1c]
mov edx, ebx
mov dword [0x6d68d0], eax
mov eax, 0xcf2a2c
xor ecx, ecx
mov cx, word [edx]
mov dword [eax - 0x14], ecx
mov cx, word [edx]
mov word [eax + 6], cx
xor ecx, ecx
mov cx, word [edx + 2]
mov dword [eax], ecx
mov dword [eax - 0x10], 1
mov cx, word [0xcf4774]
cmp cx, 0xc8
jb 0x4c1e81
cmp cx, 0xcf
jae 0x4c1e81
mov esi, dword [eax - 0x14]
xor ecx, ecx
mov cx, word [0xcf4776]
cmp esi, ecx
jne 0x4c1e81
lea edi, [eax + 4]
mov ecx, 0x12
mov esi, 0xcf4774
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
add eax, 0x74
add edx, 4
cmp eax, 0xcf2d58
jl 0x4c1e2e
call fcn.0051bd80
test al, al
jne 0x4c1ea1
mov ecx, 0xced988
call fcn.0052cfe0
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x55d]
mov byte [esp + 0x55c], 0
rep stosd dword es:[edi], eax
xor edx, edx
mov dx, word [ebp + 0x34]
stosb byte es:[edi], al
cmp edx, 0x96
mov dword [esp + 0x30], edx
mov edi, 0x675
jg 0x4c1ef2
test edx, edx
jle 0x4c1ef2
lea eax, [ebp + 0x44]
mov esi, edx
cmp word [eax - 2], di
jne 0x4c1eec
xor ecx, ecx
mov cl, byte [eax]
mov byte [esp + ecx + 0x55c], 1
add eax, 0xc
dec esi
jne 0x4c1eda
cmp edx, 0x3e8
je 0x4c24da
lea edx, [esp + 0x55c]
mov dword [esp + 0x1c], 0
mov eax, 0xceda68
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + ecx]
mov eax, dword [esp + 0x10]
test dl, dl
je 0x4c2175
mov ebp, dword [eax]
cmp ebp, 0x675
mov dword [esp + 0x14], ebp
je 0x4c2175
xor edx, edx
mov ecx, 0x4c
mov dword [esp + 0x10e], edx
lea esi, [esp + 0x94]
mov dword [esp + 0x112], edx
lea edi, [esp + 0x2f8]
mov dword [esp + 0x116], edx
mov dword [esp + 0x2f4], ebp
mov byte [esp + 0x11a], dl
lea eax, [esp + 0x2f4]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, 0xced988
mov dword [esp + 0x30], 0
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x4c218b
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x18], edx
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0x23e], eax
lea esi, [esp + 0x1c4]
mov dword [esp + 0x242], eax
lea edi, [esp + 0x42c]
mov dword [esp + 0x246], eax
mov dword [esp + 0x428], ebp
mov byte [esp + 0x24a], al
lea edx, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x428]
xor ebx, ebx
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 + 0x38], edx
jle 0x4c20f6
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, ecx
mov ebp, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
lea ecx, [eax + edx*2]
mov dword [esp + 0x3c], ecx
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov dword [ebp], 0
mov dword [ebp + 4], eax
lea edx, [ebp + 0x24]
mov dword [ebp + 8], eax
mov ecx, 0x12
xor eax, eax
mov edi, edx
lea esi, [esp + 0x1c4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x3c]
lea edi, [esp + 0x42c]
add ebp, 0x88
lea ecx, [ebx + eax]
mov eax, dword [esp + 0x14]
mov word [edx], cx
xor edx, edx
mov dword [esp + 0x23e], edx
mov ecx, 0x4c
mov dword [esp + 0x242], edx
mov dword [esp + 0x428], eax
mov dword [esp + 0x246], edx
mov word [ebp - 0x4b], 1
mov byte [esp + 0x24a], dl
lea edx, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x428]
inc ebx
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]
cmp ebx, ecx
mov dword [esp + 0x38], edx
jl 0x4c204a
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
add eax, 0x550
mov ecx, 0x4c
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x10e], eax
lea esi, [esp + 0x94]
mov dword [esp + 0x112], eax
lea edi, [esp + 0x2f8]
mov dword [esp + 0x116], eax
mov dword [esp + 0x2f4], ebp
mov byte [esp + 0x11a], al
lea edx, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2f4]
inc ebx
push ecx
push edx
mov ecx, 0xced988
mov dword [esp + 0x30], ebx
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x78]
cmp ebx, ecx
mov dword [esp + 0x38], edx
jl 0x4c1fc5
jmp 0x4c218b
xor ecx, ecx
or edx, 0xffffffff
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0x88
cmp eax, 0xa
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jl 0x4c1f22
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc esi
add edx, 0xa
cmp eax, 0xcf2a18
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jl 0x4c1f16
mov ecx, dword [esp + 0x30]
test ecx, ecx
jle 0x4c24c9
mov eax, dword [esp + 0x5f8]
mov dword [esp + 0x24], ecx
add eax, 0x44
mov dword [esp + 0x10], eax
jmp 0x4c21f2
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov esi, ecx
xor ebx, ebx
mov bx, word [eax - 2]
and edx, 0xff
test esi, esi
mov dword [esp + 0x30], edx
jl 0x4c24af
cmp esi, 0x96
jge 0x4c24af
push ebx
mov ecx, 0xced988
call fcn.0053bf30
test eax, eax
je 0x4c24af
mov eax, 0x66666667
mov ecx, 0xa
imul esi
sar edx, 2
mov eax, edx
lea edi, [esp + 0x42c]
shr eax, 0x1f
add edx, eax
mov eax, esi
mov dword [esp + 0x18], edx
lea esi, [esp + 0x1c4]
cdq
idiv ecx
mov ecx, 0x4c
mov dword [esp + 0x428], ebx
lea eax, [esp + 0x428]
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x2c], edx
xor edx, edx
mov dword [esp + 0x242], edx
mov dword [esp + 0x246], edx
mov dword [esp + 0x24a], edx
mov byte [esp + 0x24e], dl
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0xced988
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x78]
test ecx, ecx
jle 0x4c247d
mov eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x28]
lea eax, [eax + edx*2]
mov ecx, eax
shl ecx, 4
add ecx, eax
lea edx, [ecx*8 + 0xceda92]
mov dword [esp + 0x1c], edx
xor eax, eax
mov ecx, 0x4c
mov dword [esp + 0x10e], eax
lea esi, [esp + 0x94]
mov dword [esp + 0x112], eax
lea edi, [esp + 0x2f8]
mov dword [esp + 0x116], eax
mov dword [esp + 0x2f4], ebx
mov byte [esp + 0x11a], al
lea edx, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x2f4]
mov dword [esp + 0x20], 0
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 + 0x38], edx
jle 0x4c23ff
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
mov dword [ebp - 0x2a], ebx
mov word [ebp], bx
mov dword [ebp - 0x26], eax
mov eax, dword [esp + 0x10]
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], edx
lea esi, [esp + 0x94]
mov ecx, dword [eax - 0xa]
lea edi, [esp + 0x2f8]
mov dword [ebp + 2], ecx
mov edx, dword [eax - 6]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10e], eax
inc ecx
mov dword [esp + 0x112], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x116], eax
mov ecx, 0x4c
mov byte [esp + 0x11a], al
mov dword [esp + 0x2f4], ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 6], edx
lea ecx, [esp + 0x2f4]
lea edx, [esp + 0x4c]
push ecx
push edx
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 + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x74]
cmp ecx, edx
jl 0x4c2359
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x23e], edx
mov ebp, dword [esp + 0x14]
add edi, 0x550
mov dword [esp + 0x242], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x246], edx
mov ecx, 0x4c
lea esi, [esp + 0x1c4]
lea edi, [esp + 0x42c]
mov byte [esp + 0x24a], dl
mov dword [esp + 0x428], ebx
lea eax, [esp + 0x428]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x44]
push eax
inc ebp
push ecx
mov ecx, 0xced988
mov dword [esp + 0x1c], ebp
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x78]
cmp ebp, ecx
jl 0x4c22e6
cmp word [esp + 0x2c], 7
jne 0x4c24af
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [eax - 0xa]
mov eax, dword [eax - 6]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push edx
push eax
push ebx
call fcn.004c17f0
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, 0xc
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
jne 0x4c21ee
mov ecx, 0xced988
call fcn.00524080
mov ebp, dword [esp + 0x5f8]
cmp dword [ebp + 8], 2
jne 0x4c2590
xor eax, eax
xor ecx, ecx
mov ax, word [ebp + 0x38]
dec eax
je 0x4c2527
dec eax
je 0x4c250e
dec eax
jne 0x4c2560
mov eax, dword [0xa4f274]
lea edx, [esp + 0x54]
test eax, eax
mov edi, 0x6596cc
jne 0x4c253e
mov edi, 0x6596b0
jmp 0x4c253e
mov eax, dword [0xa4f274]
lea edx, [esp + 0x54]
test eax, eax
mov edi, 0x659698
jne 0x4c253e
mov edi, 0x659680
jmp 0x4c253e
mov eax, dword [0xa4f274]
lea edx, [esp + 0x54]
test eax, eax
mov edi, 0x659668
jne 0x4c253e
mov edi, 0x659650
or ecx, 0xffffffff
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]
mov ecx, 1
test ecx, ecx
mov dword [0xcf4e24], 0
je 0x4c2590
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
push 0
dec ecx
push 0
push ecx
lea ecx, [esp + 0x64]
push ecx
call fcn.004cbc90
add esp, 0x14
mov cx, word [ebp + 0x36]
cmp cx, 0x3e8
je 0x4c265e
mov eax, 0xcf3798
xor edx, edx
mov word [eax + 6], dx
mov dword [eax], edx
add eax, 0x50
cmp eax, 0xcf4738
jl 0x4c25a6
cmp cx, dx
jbe 0x4c265e
add ebp, 0x1022
and ecx, 0xffff
mov dword [esp + 0x14], ecx
movzx bx, byte [ebp]
mov si, word [ebp - 2]
xor edx, edx
mov dl, byte [ebp + 1]
cmp bx, 0x31
movzx di, dl
mov dword [esp + 0x2c], edi
ja 0x4c264c
mov eax, esi
mov ecx, 0xced988
and eax, 0xffff
push eax
call fcn.0053bf30
test eax, eax
je 0x4c264c
mov eax, ebx
and eax, 0xffff
lea edx, [eax + eax*4]
shl edx, 4
add edx, 0xcf3798
cmp si, 0x675
mov word [edx + 6], si
jne 0x4c263a
mov ecx, 0x12
xor eax, eax
lea edi, [edx + 4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [esp + 0x2c]
mov word [edx + 6], si
mov word [edx + 0x1d], 1
add ebx, 0x190
and edi, 0xffff
mov word [edx + 4], bx
mov dword [edx], edi
mov eax, dword [esp + 0x14]
add ebp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x4c25cf
mov ecx, 0xced988
call fcn.0052d360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret