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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4d7290
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0xac]
xor eax, eax
push esi
push edi
cmp dword [0x515ebc], eax
jne 0x477ee0
cmp dword [0x515ec0], eax
jne 0x477ee0
cmp dword [0x515ec4], eax
jne 0x477ee0
cmp dword [0x515ec8], eax
jne 0x477ee0
cmp dword [0x515ecc], eax
je 0x477eee
mov edx, dword [0x51844c]
mov ecx, 0x76
mov word [edx], cx
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov ecx, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], eax
mov byte [esp + 0x5c], al
mov dword [esp + 0x98], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
mov byte [esp + 0x74], al
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x48]
call fcn.00415310
push 1
mov byte [esp + 0x9c], 2
mov eax, dword [0x518444]
xor ebx, ebx
push ebx
push eax
lea esi, [esp + 0x54]
call fcn.00415800
mov esi, dword [esp + 0x4c]
push esi
lea edi, [esp + 0x58]
call fcn.00450ff0
cmp esi, ebx
je 0x477f7e
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x477f8c
mov eax, dword [eax]
cmp eax, ebx
jne 0x477f91
mov eax, 0x4e1a4c
mov ecx, ebp
shr ecx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ecx
lea edx, [eax + 2]
jmp 0x477fb0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x477fb0
mov ecx, dword [esp + 0xac]
sub eax, edx
sar eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov eax, ebp
cmp ecx, 2
je 0x477fe2
cmp ecx, 1
jne 0x477fef
cmp ebp, 0x8002
jbe 0x477fef
mov eax, 0x8002
lea edi, [eax + 0xa]
xor esi, esi
mov ecx, edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ecx
cmp edi, ebx
je 0x478017
lea esi, [esp + 0x60]
call fcn.00415010
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
cmp esi, ebx
jne 0x47806e
mov dword [esp + 0x98], 0xffffffff
mov ecx, dword [esp + 0x58]
mov eax, vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
mov dword [esp + 0x54], eax
mov dword [esp + 0x6c], eax
cmp ecx, ebx
je 0x478566
mov eax, dword [ecx + 0x10]
dec eax
mov dword [ecx + 0x10], eax
jne 0x478566
mov esi, dword [esp + 0x58]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x478060
push eax
call fcn.004c57e5
add esp, 4
push esi
call fcn.004c57da
add esp, 4
jmp 0x478566
mov eax, dword [esp + 0xa8]
cmp eax, ebx
je 0x47807c
inc eax
jmp 0x47807e
xor eax, eax
mov edx, dword [esp + 0xb0]
lea ebp, [edx + eax*2]
mov edx, dword [esp + 0x28]
mov eax, 0xa
mov word [esi], ax
lea eax, [edx + edx]
lea edi, [esi + 2]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x44], edi
cmp eax, dword [esp + 0xb4]
je 0x4780c8
push ecx
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x64], ebx
jmp 0x47801b
mov eax, dword [esp + 0xac]
cmp eax, 2
je 0x478112
cmp eax, 1
je 0x478112
cmp eax, 4
jne 0x47813a
mov eax, dword [esp + 0xbc]
cmp eax, ebx
je 0x478522
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x47810c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4780f7
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
jmp 0x47813a
mov dword [esp + 0x20], ebx
jmp 0x47813a
cmp dword [esp + 0xa0], ebx
je 0x47852d
cmp dword [esp + 0xa4], ebx
je 0x47852d
mov esi, dword [esp + 0xa0]
push 1
call fcn.00414fa0
cmp dword [esp + 0xa8], ebx
jne 0x47836c
mov eax, dword [esp + 0x24]
call fcn.00477c20
add eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
add eax, dword [esp + 0x28]
movzx ecx, al
xor cx, word [ebp]
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 + 0xac], 4
movzx eax, dx
mov word [edi], ax
jne 0x47819b
cmp ax, bx
je 0x4784e7
mov ecx, dword [esp + 0xa8]
add ebp, 2
mov dword [esp + 0x18], ebp
add edi, 2
mov dword [esp + 0x30], 1
xor ebp, ebp
mov eax, dword [esp + 0x28]
dec eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x48], eax
cmp ecx, eax
jae 0x4784ce
sub ecx, dword [esp + 0x20]
mov dword [esp + 0x38], ecx
jmp 0x4781e0
mov dx, word [edi - 2]
mov eax, dword [esp + 0x18]
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 + 0x28]
add ecx, edx
movzx edx, word [eax + ebp*2]
sub edx, ebx
add edx, esi
add edx, dword [esp + 0x2c]
push ecx
push 0
push edx
call fcn.004d3f30
mov ecx, dword [esp + 0x18]
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
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 [edi], si
cmp ebp, dword [esp + 0x2c]
jb 0x47827d
xor ebp, ebp
mov eax, dword [esp + 0xac]
add dword [esp + 0x18], 2
inc dword [esp + 0x38]
inc ebx
add edi, 2
mov dword [esp + 0x14], ebx
cmp eax, 2
jg 0x478382
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, 0x4000
ja 0x4782bd
cmp esi, 0xa
je 0x4782bd
cmp si, dx
jne 0x4784c4
cmp eax, 2
jne 0x4784ce
cmp word [edi - 4], 0xd
jne 0x4782d4
mov dword [edi - 4], 0xa
xor ecx, ecx
xor edx, edx
mov word [edi], dx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x44]
cmp eax, ecx
je 0x47830a
mov ebx, eax
lea eax, [esp + 0x84]
call fcn.00415310
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xa0]
lea edi, [esp + 0x84]
call fcn.004150f0
mov eax, dword [esp + 0xa4]
mov ecx, edi
mov dword [eax], ebx
call fcn.00414f70
lea ecx, [esp + 0x60]
call fcn.00414f70
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 0
call fcn.004050a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], 0xffffffff
call fcn.004050a0
cmp ebx, dword [esp + 0x48]
jae 0x478566
mov al, 1
jmp 0x478568
mov ecx, dword [esp + 0xa8]
mov eax, ecx
xor edx, edx
div dword [esp + 0x2c]
mov ebp, edx
jmp 0x4781b6
cmp eax, 4
jne 0x4784c4
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0xbc]
cmp byte [edx + 0x10], 0
jne 0x478421
cmp dword [esp + 0x20], 0
je 0x478421
movzx eax, word [edi - 4]
mov word [esp + 0x34], ax
lea ebx, [esp + 0x34]
lea eax, [esp + 0x78]
call fcn.00415310
mov ecx, dword [esp + 0xbc]
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x7c]
movzx ebx, word [edx + eax*2]
mov ax, word [ecx]
call fcn.00409dc0
mov word [esp + 0x12], ax
mov eax, ebx
call fcn.00409dc0
inc dword [esp + 0x1c]
cmp word [esp + 0x12], ax
je 0x478401
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp edx, dword [esp + 0x20]
jne 0x478421
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x38]
mov byte [eax + 0x10], 1
mov dword [eax + 0x14], ecx
mov eax, dword [esp + 0xbc]
cmp dword [eax + 4], 0
jne 0x4784b6
cmp dword [eax], 0
je 0x4784b6
cmp esi, 0xa
jne 0x4784b6
mov ebx, dword [esp + 0x64]
xor edx, edx
lea eax, [esp + 0x78]
mov word [edi], dx
call fcn.00415310
mov edi, dword [esp + 0xbc]
mov esi, dword [esp + 0x7c]
mov eax, dword [edi]
mov ecx, esi
call fcn.004a75a0
add esi, 2
cmp esi, eax
jne 0x47849b
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x47847b
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
jmp 0x47849b
cmp dword [esp + 0x40], 0
jne 0x47849b
lea eax, [esp + 0x78]
call fcn.00415dc0
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x40], ecx
sub ecx, esi
inc ecx
mov dword [edi + 4], ecx
lea ecx, [esp + 0x60]
call fcn.00414ff0
mov edi, dword [esp + 0x44]
mov ecx, 0xa
mov word [ebx], cx
mov ebx, dword [esp + 0x14]
jmp 0x4784bb
test si, si
je 0x478519
lea ecx, [esp + 0x78]
call fcn.00414f70
cmp ebx, dword [esp + 0x48]
jb 0x4781e0
cmp dword [esp + 0xac], 4
jne 0x4782d4
mov ecx, dword [esp + 0xbc]
inc ebx
mov dword [ecx + 8], ebx
lea ecx, [esp + 0x60]
call fcn.00414f70
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 0
call fcn.004050a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], 0xffffffff
call fcn.004050a0
mov al, 1
jmp 0x478568
lea ecx, [esp + 0x78]
call fcn.00414f70
lea ecx, [esp + 0x60]
call fcn.00414f70
jmp 0x478541
push ecx
push ebx
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 0
call fcn.004050a0
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], 0xffffffff
call fcn.004050a0
xor al, al
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8c
ret