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

Disassembly:
push 0xffffffffffffffff
push 0x4ccab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0xa0]
xor ebx, ebx
push edi
cmp dword [0x4f0bb8], ebx
jne 0x475004
cmp dword [0x4f0bbc], ebx
jne 0x475004
cmp dword [0x4f0bc0], ebx
jne 0x475004
cmp dword [0x4f0bc4], ebx
jne 0x475004
cmp dword [0x4f0bc8], ebx
je 0x47500c
mov eax, dword [0x4f2d8c]
mov byte [eax], 0x76
xor ecx, ecx
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0x54], cl
mov dword [esp + 0x90], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], cl
mov eax, dword [esp + 0xb0]
push eax
lea edi, [esp + 0x50]
mov byte [esp + 0x94], 1
call fcn.00474df0
mov eax, dword [esp + 0x54]
add esp, 4
cmp eax, ebx
je 0x475060
mov eax, dword [eax]
cmp eax, ebx
jne 0x475065
mov eax, 0x4de7fc
mov ecx, ebp
shr ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x475080
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov eax, ebp
cmp esi, 2
je 0x4750ab
cmp esi, 1
jne 0x4750b8
cmp ebp, 0x4001
jbe 0x4750b8
mov eax, 0x4001
lea edi, [eax + 0xa]
xor esi, esi
mov ecx, edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ecx
cmp edi, ebx
je 0x4750e0
lea esi, [esp + 0x58]
call fcn.00413990
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
cmp esi, ebx
jne 0x475137
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x50]
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], eax
cmp ecx, ebx
je 0x475643
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x475643
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x475129
push eax
call fcn.004ba14c
add esp, 4
push esi
call fcn.004b9d3f
add esp, 4
jmp 0x475643
mov eax, dword [esp + 0xa0]
cmp eax, ebx
je 0x475145
inc eax
jmp 0x475147
xor eax, eax
mov edx, dword [esp + 0xa8]
lea ebx, [edx + eax*2]
mov edx, dword [esp + 0x20]
mov eax, 0xa
mov word [esi], ax
lea eax, [edx + edx]
lea edi, [esi + 2]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x40], edi
cmp eax, ebp
je 0x4751cb
push ecx
push 0
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
mov dword [esp + 0x94], 0xffffffff
mov ecx, dword [esp + 0x54]
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
add esp, 4
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x475643
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x475643
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 4]
test eax, eax
jmp 0x47511e
mov eax, dword [esp + 0xa4]
cmp eax, 2
je 0x475219
cmp eax, 1
je 0x475219
cmp eax, 4
jne 0x475243
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4755fe
mov eax, dword [eax + 0xc]
test eax, eax
je 0x47520f
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x475200
sub eax, edx
mov dword [esp + 0x14], eax
jmp 0x475243
mov dword [esp + 0x14], 0
jmp 0x475243
cmp dword [esp + 0x98], 0
je 0x475609
cmp dword [esp + 0x9c], 0
je 0x475609
mov esi, dword [esp + 0x98]
push 1
call fcn.00413920
cmp dword [esp + 0xa0], 0
jne 0x4752b6
mov eax, dword [esp + 0x1c]
call fcn.00474d30
add eax, dword [esp + 0x24]
xor ebp, ebp
add eax, dword [esp + 0x20]
mov dword [esp + 0x48], ebp
movzx ecx, al
xor cx, word [ebx]
movzx eax, cx
mov edx, eax
and edx, 0xf
add edx, edx
mov ecx, eax
add edx, edx
shr ecx, 4
add edx, edx
and ecx, 7
and eax, 0xff80
or edx, ecx
or edx, eax
cmp dword [esp + 0xa4], 4
movzx eax, dx
mov word [edi], ax
jne 0x4752a2
cmp ax, bp
je 0x4755c3
add ebx, 2
mov dword [esp + 0x10], ebx
add edi, 2
mov dword [esp + 0x28], 1
jmp 0x4752c5
mov eax, dword [esp + 0xa0]
xor edx, edx
div dword [esp + 0x24]
mov ebp, edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xa0]
dec ecx
mov ebx, eax
mov dword [esp + 0x44], ecx
cmp eax, ecx
jae 0x4755aa
sub eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
jmp 0x4752f0
mov dx, word [edi - 2]
mov eax, dword [esp + 0x10]
xor dx, word [eax - 2]
push 0
movzx eax, dx
mov ecx, eax
and eax, 0xf
shl eax, 4
shr ecx, 4
and ecx, 0xf
or ecx, eax
movzx esi, cx
movzx ecx, bl
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 + 0x20]
add ecx, edx
movzx edx, word [eax + ebp*2]
sub edx, ebx
add edx, esi
add edx, dword [esp + 0x24]
push ecx
push 0
push edx
call fcn.004c9370
mov ecx, dword [esp + 0x10]
movzx eax, al
xor ax, word [ecx]
inc ebp
movzx eax, ax
mov edx, eax
and edx, 0xf
add edx, edx
add edx, edx
mov ecx, eax
shr ecx, 4
add edx, edx
and ecx, 7
or edx, ecx
and eax, 0xff80
or edx, eax
movzx esi, dx
mov word [edi], si
cmp ebp, dword [esp + 0x24]
jb 0x47538b
xor ebp, ebp
mov eax, dword [esp + 0xa4]
add dword [esp + 0x10], 2
inc dword [esp + 0x30]
inc ebx
xor edx, edx
add edi, 2
mov dword [esp + 0x34], ebx
cmp eax, 2
jg 0x47546d
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, 0x4000
ja 0x4753cd
cmp esi, 0xa
je 0x4753cd
cmp si, dx
jne 0x4755a0
cmp eax, 2
jne 0x4755aa
cmp word [edi - 4], 0xd
jne 0x4753e4
mov dword [edi - 4], 0xa
xor eax, eax
xor ecx, ecx
mov word [edi], cx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x80]
call fcn.00413d30
mov esi, dword [esp + 0x98]
lea edi, [esp + 0x7c]
call fcn.00413a70
mov eax, dword [esp + 0x9c]
mov ecx, edi
mov dword [eax], ebx
call fcn.004138f0
lea ecx, [esp + 0x58]
call fcn.004138f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 0
call fcn.0042e9f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0042e9f0
cmp ebx, dword [esp + 0x44]
jae 0x475643
mov al, 1
jmp 0x475645
cmp eax, 4
jne 0x4755a0
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0xb4]
cmp byte [edx + 0x10], 0
jne 0x475500
cmp dword [esp + 0x14], 0
je 0x475500
mov ax, word [edi - 4]
lea ecx, [esp + 0x2c]
mov word [esp + 0x2c], ax
push ecx
lea eax, [esp + 0x74]
call fcn.00413d30
mov edx, dword [esp + 0xb4]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + eax]
call fcn.004099b0
mov edx, dword [esp + 0x74]
mov bl, al
mov al, byte [edx]
call fcn.004099b0
inc dword [esp + 0x18]
cmp al, bl
je 0x4754e0
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
cmp dword [esp + 0x18], eax
jne 0x475500
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x30]
mov byte [eax + 0x10], 1
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0xb4]
cmp dword [eax + 4], 0
jne 0x475592
cmp dword [eax], 0
je 0x475592
cmp esi, 0xa
jne 0x475592
mov eax, dword [esp + 0x5c]
xor edx, edx
push eax
lea eax, [esp + 0x74]
mov word [edi], dx
call fcn.00413d30
mov edi, dword [esp + 0xb4]
mov ecx, dword [edi]
mov esi, dword [esp + 0x74]
push ecx
mov eax, esi
call fcn.004a3290
inc esi
add esp, 4
cmp esi, eax
jne 0x475577
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x475559
mov dword [esp + 0x38], ebx
jmp 0x475577
cmp dword [esp + 0x3c], 0
jne 0x475577
lea eax, [esp + 0x70]
call fcn.004146f0
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x3c], ecx
sub ecx, esi
inc ecx
mov dword [edi + 4], ecx
lea ecx, [esp + 0x58]
call fcn.00413970
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x40]
mov edx, 0xa
mov word [eax], dx
jmp 0x475597
test si, si
je 0x4755f5
lea ecx, [esp + 0x70]
call fcn.004138f0
cmp ebx, dword [esp + 0x44]
jb 0x4752f0
cmp dword [esp + 0xa4], 4
jne 0x4753e4
mov eax, dword [esp + 0xb4]
inc ebx
mov dword [eax + 8], ebx
lea ecx, [esp + 0x58]
call fcn.004138f0
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 0
call fcn.0042e9f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0042e9f0
mov al, 1
jmp 0x475645
lea ecx, [esp + 0x70]
call fcn.004138f0
lea ecx, [esp + 0x58]
call fcn.004138f0
jmp 0x47561e
push ecx
push 0
push esi
call fcn.004c16a0
add esp, 0xc
push esi
call fcn.004ba14c
add esp, 4
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 0
call fcn.0042e9f0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x90], 0xffffffff
call fcn.0042e9f0
xor al, al
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x84
ret