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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cc680
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp dword [0x4f0bb8], ebp
jne 0x4756a6
cmp dword [0x4f0bbc], ebp
jne 0x4756a6
cmp dword [0x4f0bc0], ebp
jne 0x4756a6
cmp dword [0x4f0bc4], ebp
jne 0x4756a6
cmp dword [0x4f0bc8], ebp
je 0x4756ae
mov eax, dword [0x4f2d8c]
mov byte [eax], 0x76
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov word [esp + 0x14], bp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
mov byte [esp + 0x3c], 0
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
mov byte [esp + 0x60], 0
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x74], 1
call fcn.00474f20
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, ebp
je 0x4756fb
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x475703
mov dword [esp + 0x18], 0x4d6959
mov eax, dword [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475710
mov ebx, dword [esp + 0x84]
sub eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov eax, ebx
cmp ebx, 0x4001
jbe 0x475737
mov eax, 0x4001
lea edi, [eax + 0xa]
xor esi, esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
cmp edi, ebp
je 0x475759
lea esi, [esp + 0x40]
call fcn.00413990
mov esi, dword [esp + 0x44]
cmp esi, ebp
jne 0x4757bd
mov dword [esp + 0x6c], 0xffffffff
mov ecx, dword [esp + 0x38]
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [esp + 0x58], eax
mov dword [esp + 0x34], eax
cmp ecx, ebp
je 0x4759ee
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x4759ee
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x47579f
push eax
call fcn.004ba14c
add esp, 4
push esi
call fcn.004b9d3f
add esp, 4
xor al, al
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x7c]
cmp eax, ebp
je 0x4757c8
inc eax
jmp 0x4757ca
xor eax, eax
mov ecx, dword [esp + 0x80]
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x74]
lea edi, [esi + 1]
mov dword [esp + 0x14], ebp
mov byte [esi], 0xa
mov dword [esp + 0x30], edi
test eax, eax
je 0x4759b6
cmp dword [esp + 0x78], 0
je 0x4759b6
push 1
mov esi, eax
call fcn.00413920
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x475877
mov eax, dword [esp + 0x18]
call fcn.00474d90
add eax, dword [esp + 0x1c]
mov cl, byte [ebp]
add eax, ebx
xor cl, al
mov dl, cl
and dl, 0xf
add dl, dl
add dl, dl
mov al, cl
shr al, 4
add dl, dl
and al, 7
or dl, al
and cl, 0x80
or dl, cl
inc ebp
mov byte [edi], dl
mov dword [esp + 0x14], ebp
inc edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], 1
xor ebp, ebp
mov eax, dword [esp + 0x84]
dec eax
mov ebx, esi
mov dword [esp + 0x28], eax
cmp esi, eax
jae 0x475936
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sub eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jmp 0x475887
mov eax, esi
xor edx, edx
div dword [esp + 0x1c]
mov ebp, edx
jmp 0x47584d
mov eax, dword [esp + 0x20]
mov al, byte [eax + ebx - 1]
xor al, byte [edi - 1]
movzx ecx, bl
rol al, 4
movzx esi, al
xor ecx, esi
mov eax, 0xa41a41a5
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 7
imul eax, eax, 0x9c
mov edx, 0x64
sub edx, eax
mov eax, dword [esp + 0x18]
add ecx, edx
movsx edx, byte [eax + ebp]
sub edx, ebx
push 0
add edx, esi
add edx, dword [esp + 0x88]
push ecx
push 0
push edx
call fcn.004c9370
mov ecx, dword [esp + 0x20]
xor al, byte [ecx + ebx]
inc ebp
mov cl, al
and cl, 0xf
add cl, cl
add cl, cl
mov dl, al
shr dl, 4
add cl, cl
and dl, 7
or cl, dl
and al, 0x80
or cl, al
mov byte [edi], cl
cmp ebp, dword [esp + 0x1c]
jb 0x475903
xor ebp, ebp
mov eax, dword [esp + 0x24]
inc eax
inc edi
inc ebx
mov dword [esp + 0x24], eax
cmp eax, 0x4000
ja 0x47592a
cmp cl, 0xa
je 0x47592a
test cl, cl
je 0x47592a
cmp ebx, dword [esp + 0x28]
jb 0x475883
jmp 0x475936
cmp byte [edi - 2], 0xd
jne 0x475936
mov word [edi - 2], 0xa
xor eax, eax
mov byte [edi], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
je 0x475959
push ecx
lea eax, [esp + 0x50]
call fcn.00413c90
mov esi, dword [esp + 0x74]
lea edi, [esp + 0x4c]
call fcn.00413a70
mov eax, dword [esp + 0x78]
mov ecx, edi
mov dword [eax], ebx
call fcn.004138f0
lea ecx, [esp + 0x40]
call fcn.004138f0
lea ecx, [esp + 0x58]
mov byte [esp + 0x6c], 0
call fcn.00403ea0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00403ea0
cmp ebx, dword [esp + 0x28]
jae 0x4759ee
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
lea ecx, [esp + 0x58]
mov byte [esp + 0x6c], 0
call fcn.00403ea0
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00403ea0
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret