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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4dbf23
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
xor eax, eax
push esi
push edi
cmp dword [0x51aeb0], eax
jne 0x478d80
cmp dword [0x51aeb4], eax
jne 0x478d80
cmp dword [0x51aeb8], eax
jne 0x478d80
cmp dword [0x51aebc], eax
jne 0x478d80
cmp dword [0x51aec0], eax
je 0x478d8e
mov edx, dword [0x51d67c]
mov ecx, 0x76
mov word [edx], cx
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov ecx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], al
mov dword [esp + 0xa4], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], al
mov ebx, dword [esp + 0xc4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x54]
call fcn.00414350
push 1
mov byte [esp + 0xa8], 2
mov eax, dword [0x51d674]
xor ebx, ebx
push ebx
push eax
lea esi, [esp + 0x60]
call fcn.004148c0
mov esi, dword [esp + 0x58]
push esi
lea edi, [esp + 0x24]
call fcn.00486cc0
cmp esi, ebx
je 0x478e1e
mov ecx, dword [esp + 0x54]
push ecx
push ebx
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x478e2c
mov eax, dword [eax]
cmp eax, ebx
jne 0x478e31
mov eax, 0x4f5ac4
mov ecx, ebp
shr ecx, 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x478e50
sub eax, ecx
mov ecx, dword [esp + 0xb8]
sar eax, 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], ebx
mov eax, ebp
cmp ecx, 2
je 0x478e8c
cmp ecx, 1
jne 0x478e99
cmp ebp, 0x8002
jbe 0x478e99
mov eax, 0x8002
lea edi, [eax + 0xa]
mov ecx, edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ecx
cmp edi, ebx
je 0x478ebb
lea esi, [esp + 0x2c]
call fcn.00414050
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0xa4], 3
cmp dword [esp + 0x30], ebx
jne 0x478f1c
mov dword [esp + 0xa4], 0xffffffff
mov ecx, dword [esp + 0x24]
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], eax
cmp ecx, ebx
je 0x4795a8
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x4795a8
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x478f0e
push eax
call fcn.004ca991
add esp, 4
push esi
call fcn.004cb3e6
add esp, 4
jmp 0x4795a8
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x478f2a
lea ebx, [eax + 1]
mov eax, dword [esp + 0xbc]
mov edi, dword [esp + 0x30]
lea edx, [eax + ebx*2]
mov dword [esp + 0x14], edx
mov edx, 0xa
mov word [edi], dx
mov edx, dword [esp + 0x1c]
add edx, edx
lea ebp, [edi + 2]
mov dword [esp + 0x88], ebp
cmp edx, dword [esp + 0xc0]
je 0x478fba
push ecx
push 0
push edi
call fcn.004d2f90
add esp, 0xc
push edi
call fcn.004ca991
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x30], 0
test eax, eax
je 0x4795a8
lea ecx, [eax + 0x10]
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x4795a8
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
test eax, eax
jmp 0x478f03
mov ebx, dword [esp + 0xb8]
cmp ebx, 2
je 0x4790a2
cmp ebx, 1
je 0x4790a2
cmp ebx, 3
jne 0x479065
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x479563
cmp eax, dword [ecx + 4]
je 0x479563
mov edi, dword [esp + 0xc0]
mov esi, ecx
call fcn.00414050
mov ebx, dword [esp + 0xc8]
lea edi, [esp + 0x40]
mov dword [esp + 0x4c], eax
call fcn.00478600
mov eax, dword [esp + 0x44]
test eax, eax
je 0x479028
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x479030
mov dword [esp + 0x18], 0x4f5ac4
mov eax, dword [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479037
mov ebx, dword [esp + 0xb8]
sub eax, edx
sar eax, 1
mov dword [esp + 0xb4], 0
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x60], eax
jmp 0x4790d5
cmp ebx, 4
jne 0x4790c6
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x479563
mov eax, dword [eax + 0xc]
test eax, eax
je 0x479098
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479083
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
jmp 0x4790c6
mov dword [esp + 0x3c], 0
jmp 0x4790c6
mov esi, dword [esp + 0xac]
test esi, esi
je 0x47956e
cmp dword [esp + 0xb0], 0
je 0x47956e
push 1
call fcn.00413fe0
mov esi, dword [esp + 0xb4]
test esi, esi
jne 0x479371
mov eax, dword [esp + 0x50]
call fcn.00478540
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x58], 0
movzx eax, al
xor ax, word [ecx]
movzx eax, ax
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
movzx eax, dx
mov word [ebp], ax
cmp ebx, 4
jne 0x479161
test ax, ax
jne 0x4791af
lea ecx, [esp + 0x2c]
call fcn.00413fb0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 0
call fcn.0042f510
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0042f510
mov al, 1
jmp 0x4795aa
cmp ebx, 3
jne 0x4791af
mov edx, eax
mov ecx, eax
shr edx, 3
and ecx, 7
and edx, 0xf
shl ecx, 4
and eax, 0xff80
or edx, ecx
or edx, eax
mov eax, dword [esp + 0x18]
movzx edi, dx
call fcn.00478540
add eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0
add eax, dword [esp + 0x1c]
movzx edx, al
mov eax, dword [esp + 0x4c]
xor dx, di
mov word [eax], dx
add eax, 2
mov dword [esp + 0x4c], eax
add dword [esp + 0x14], 2
add ebp, 2
mov dword [esp + 0x68], 1
xor edi, edi
mov eax, dword [esp + 0x1c]
dec eax
mov ebx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], eax
cmp esi, eax
jae 0x479531
sub esi, dword [esp + 0x3c]
mov dword [esp + 0x6c], esi
mov ax, word [ebp - 2]
mov ecx, dword [esp + 0x14]
xor ax, word [ecx - 2]
movzx ecx, bl
movzx eax, ax
mov edx, eax
and eax, 0xf
shr edx, 4
shl eax, 4
and edx, 0xf
or edx, eax
movzx esi, dx
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 + 0x50]
add ecx, edx
movzx edx, word [eax + edi*2]
sub edx, ebx
push 0
add edx, esi
add edx, dword [esp + 0x20]
push ecx
push 0
push edx
call fcn.004d8c30
mov ecx, dword [esp + 0x14]
movzx eax, al
xor ax, word [ecx]
inc edi
movzx eax, ax
mov edx, eax
and edx, 0xf
add edx, edx
add edx, edx
mov ecx, eax
add edx, edx
shr ecx, 4
and ecx, 7
or edx, ecx
and eax, 0xff80
or edx, eax
movzx esi, dx
xor edx, edx
mov word [ebp], si
cmp edi, dword [esp + 0x64]
jb 0x47927e
xor edi, edi
mov eax, dword [esp + 0xb8]
add dword [esp + 0x14], 2
inc dword [esp + 0x6c]
inc ebx
add ebp, 2
mov dword [esp + 0x10], ebx
cmp eax, 2
jg 0x479380
mov ecx, dword [esp + 0x68]
inc ecx
mov dword [esp + 0x68], ecx
cmp ecx, 0x4000
ja 0x4792be
cmp esi, 0xa
je 0x4792be
cmp si, dx
jne 0x479527
cmp eax, 2
jne 0x479531
cmp word [ebp - 4], 0xd
jne 0x4792d5
mov dword [ebp - 4], 0xa
xor ecx, ecx
xor edx, edx
mov word [ebp], dx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0x88]
cmp eax, ecx
je 0x47930f
mov ebx, eax
lea eax, [esp + 0x90]
call fcn.00414350
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0xac]
lea edi, [esp + 0x90]
call fcn.00414130
mov eax, dword [esp + 0xb0]
mov ecx, edi
mov dword [eax], ebx
call fcn.00413fb0
lea ecx, [esp + 0x2c]
call fcn.00413fb0
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 0
call fcn.0042f510
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0042f510
cmp ebx, dword [esp + 0x54]
jae 0x4795a8
mov al, 1
jmp 0x4795aa
mov eax, esi
xor edx, edx
div dword [esp + 0x64]
mov edi, edx
jmp 0x4791c1
cmp eax, 3
jne 0x4793c1
cmp si, dx
je 0x479563
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x4c]
push edx
push eax
push ecx
lea ecx, [ebp - 2]
push esi
mov eax, ebx
call fcn.004787b0
add esi, 2
add esp, 0x10
xor edx, edx
mov dword [esp + 0x4c], esi
mov word [ebp - 4], dx
jmp 0x479527
cmp eax, 4
jne 0x479527
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0xcc]
cmp byte [eax + 0x10], 0
jne 0x47946b
cmp dword [esp + 0x3c], 0
je 0x47946b
movzx ecx, word [ebp - 4]
lea ebx, [esp + 0x74]
lea eax, [esp + 0x78]
mov word [esp + 0x74], cx
call fcn.00414350
mov edx, dword [esp + 0xcc]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
movzx ebx, word [eax + ecx*2]
mov ax, word [edx]
call fcn.00409d00
mov word [esp + 0x72], ax
mov eax, ebx
call fcn.00409d00
movzx ecx, word [esp + 0x72]
inc dword [esp + 0x38]
cmp cx, ax
je 0x47944b
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
cmp eax, dword [esp + 0x3c]
jne 0x47946b
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0x6c]
mov byte [eax + 0x10], 1
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0xcc]
cmp dword [eax + 4], 0
jne 0x479519
cmp dword [eax], 0
je 0x479519
cmp esi, 0xa
jne 0x479519
mov ebx, dword [esp + 0x30]
xor edx, edx
lea eax, [esp + 0x78]
mov word [ebp], dx
call fcn.00414350
mov ebp, dword [esp + 0xcc]
mov esi, dword [esp + 0x7c]
mov eax, dword [ebp]
mov ecx, esi
call fcn.004ac420
add esi, 2
cmp esi, eax
jne 0x4794fb
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x4794d5
mov eax, dword [esp + 0x10]
mov dword [esp + 0x84], eax
jmp 0x4794fb
cmp dword [esp + 0x8c], 0
jne 0x4794fb
lea eax, [esp + 0x78]
call fcn.00414e80
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x8c], ecx
sub ecx, esi
inc ecx
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x2c]
call fcn.00414030
mov ebp, dword [esp + 0x88]
mov ecx, 0xa
mov word [ebx], cx
mov ebx, dword [esp + 0x10]
jmp 0x47951e
test si, si
je 0x47955a
lea ecx, [esp + 0x78]
call fcn.00413fb0
cmp ebx, dword [esp + 0x54]
jb 0x4791e0
mov eax, dword [esp + 0xb8]
cmp eax, 3
je 0x47912c
cmp eax, 4
jne 0x4792d5
mov ecx, dword [esp + 0xcc]
inc ebx
mov dword [ecx + 8], ebx
jmp 0x47912c
lea ecx, [esp + 0x78]
call fcn.00413fb0
lea ecx, [esp + 0x2c]
call fcn.00413fb0
jmp 0x479583
push ecx
push 0
push edi
call fcn.004d2f90
add esp, 0xc
push edi
call fcn.004ca991
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0xa4], 0
call fcn.0042f510
lea ecx, [esp + 0x20]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0042f510
xor al, al
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret