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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d73c0
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
xor ebp, ebp
push esi
push edi
cmp dword [0x515ebc], ebp
jne 0x4785d6
cmp dword [0x515ec0], ebp
jne 0x4785d6
cmp dword [0x515ec4], ebp
jne 0x4785d6
cmp dword [0x515ec8], ebp
jne 0x4785d6
cmp dword [0x515ecc], ebp
je 0x4785e4
mov ecx, dword [0x51844c]
mov eax, 0x76
mov word [ecx], ax
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov word [esp + 0x10], bp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebp
mov byte [esp + 0x38], 0
mov dword [esp + 0x68], ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebp
mov byte [esp + 0x5c], 0
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x6c], 1
call fcn.00477d60
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, ebp
je 0x478637
mov eax, dword [eax]
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x47863f
mov dword [esp + 0x14], 0x4f0aa8
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478646
mov ebx, dword [esp + 0x80]
sub eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov eax, ebx
cmp ebx, 0x8002
jbe 0x47866d
mov eax, 0x8002
lea edi, [eax + 0xa]
xor esi, esi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], edi
cmp edi, ebp
je 0x47868f
lea esi, [esp + 0x3c]
call fcn.00415010
mov esi, dword [esp + 0x40]
cmp esi, ebp
jne 0x4786f3
mov dword [esp + 0x68], 0xffffffff
mov ecx, dword [esp + 0x34]
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
cmp ecx, ebp
je 0x478927
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x478927
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x4786d5
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x78]
cmp eax, ebp
je 0x4786fe
inc eax
jmp 0x478700
xor eax, eax
mov ecx, dword [esp + 0x7c]
lea ebp, [eax + ecx]
mov eax, dword [esp + 0x70]
lea edi, [esi + 1]
mov dword [esp + 0x20], ebp
mov byte [esi], 0xa
mov dword [esp + 0x2c], edi
test eax, eax
je 0x4788ef
cmp dword [esp + 0x74], 0
je 0x4788ef
push 1
mov esi, eax
call fcn.00414fa0
mov esi, dword [esp + 0x78]
test esi, esi
jne 0x4787aa
mov eax, dword [esp + 0x14]
call fcn.00477c80
add eax, dword [esp + 0x18]
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 + 0x20], ebp
inc edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], 1
xor ebp, ebp
mov eax, dword [esp + 0x80]
dec eax
mov ebx, esi
mov dword [esp + 0x24], eax
cmp esi, eax
jae 0x478873
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jmp 0x4787c4
mov eax, esi
xor edx, edx
div dword [esp + 0x18]
mov ebp, edx
jmp 0x478780
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 + 0x14]
add ecx, edx
movsx edx, byte [eax + ebp]
sub edx, ebx
push 0
add edx, esi
add edx, dword [esp + 0x84]
push ecx
push 0
push edx
call fcn.004d3f30
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 + 0x18]
jb 0x478840
xor ebp, ebp
mov eax, dword [esp + 0x1c]
inc eax
inc edi
inc ebx
mov dword [esp + 0x1c], eax
cmp eax, 0x4000
ja 0x478867
cmp cl, 0xa
je 0x478867
test cl, cl
je 0x478867
cmp ebx, dword [esp + 0x24]
jb 0x4787c0
jmp 0x478873
cmp byte [edi - 2], 0xd
jne 0x478873
mov word [edi - 2], 0xa
xor eax, eax
mov byte [edi], 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x4c]
call fcn.004153b0
mov esi, dword [esp + 0x70]
lea edi, [esp + 0x48]
call fcn.004150f0
mov ecx, dword [esp + 0x74]
mov dword [ecx], ebx
mov ecx, edi
call fcn.00414f70
lea ecx, [esp + 0x3c]
call fcn.00414f70
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 0
call fcn.00451760
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xffffffff
call fcn.00451760
cmp ebx, dword [esp + 0x24]
jae 0x478927
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov edx, dword [esp + 0x3c]
push edx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
lea ecx, [esp + 0x54]
mov byte [esp + 0x68], 0
call fcn.00451760
lea ecx, [esp + 0x30]
mov dword [esp + 0x68], 0xffffffff
call fcn.00451760
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
xor al, al
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret