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

Disassembly:
push 0xffffffffffffffff
push 0x4dc0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
mov esi, dword [esp + 0xac]
xor ebx, ebx
push edi
mov edi, dword [esp + 0xb8]
cmp dword [0x51aeb0], ebx
jne 0x479627
cmp dword [0x51aeb4], ebx
jne 0x479627
cmp dword [0x51aeb8], ebx
jne 0x479627
cmp dword [0x51aebc], ebx
jne 0x479627
cmp dword [0x51aec0], ebx
je 0x479635
mov ecx, dword [0x51d67c]
mov eax, 0x76
mov word [ecx], ax
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov word [esp + 0x14], bx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x4c], 0
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xa0], 1
call fcn.00478680
mov ebp, dword [esp + 0x34]
add esp, 4
cmp ebp, ebx
je 0x47968a
mov eax, dword [ebp]
cmp eax, ebx
jne 0x47968f
mov eax, 0x50ed83
mov dword [esp + 0x50], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4796a2
sub eax, ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov eax, edi
cmp esi, 2
je 0x4796cb
cmp esi, 1
jne 0x4796d8
cmp edi, 0x8002
jbe 0x4796d8
mov eax, 0x8002
lea edi, [eax + 0xa]
xor esi, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
cmp edi, ebx
je 0x4796fa
lea esi, [esp + 0x38]
call fcn.00414050
mov esi, dword [esp + 0x3c]
mov byte [esp + 0x9c], 2
cmp esi, ebx
jne 0x479755
mov eax, vtable.CKuStringT_char__class_CKuStringUtilA_.0
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
cmp ebp, ebx
je 0x479d0d
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x479d0d
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x479747
push eax
call fcn.004ca991
add esp, 4
push esi
call fcn.004cb3e6
add esp, 4
jmp 0x479d0d
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x479763
inc eax
jmp 0x479765
xor eax, eax
mov ecx, dword [esp + 0xb4]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb0]
lea ebp, [esi + 1]
mov byte [esi], 0xa
mov dword [esp + 0x7c], ebp
cmp eax, 2
je 0x479841
cmp eax, 1
je 0x479841
cmp eax, 3
jne 0x479808
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x479cc5
cmp ecx, dword [eax + 4]
je 0x479cc5
mov edi, dword [esp + 0xb8]
mov esi, eax
call fcn.00414050
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
push eax
call fcn.00478680
mov eax, dword [esp + 0x4c]
add esp, 4
cmp eax, ebx
je 0x4797e6
mov eax, dword [eax]
cmp eax, ebx
jne 0x4797eb
mov eax, 0x50ed83
mov dword [esp + 0x20], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4797f2
sub eax, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0xac], ebx
jmp 0x479875
cmp eax, 4
jne 0x479866
mov eax, dword [esp + 0xc4]
cmp eax, ebx
je 0x479cc5
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x47983b
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x479826
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
jmp 0x479866
mov dword [esp + 0x1c], ebx
jmp 0x479866
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x479cd0
cmp dword [esp + 0xa8], ebx
je 0x479cd0
push 1
mov esi, eax
call fcn.00413fe0
mov eax, dword [esp + 0xac]
cmp eax, ebx
jne 0x479b01
mov eax, dword [esp + 0x50]
call fcn.004785a0
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
add eax, dword [esp + 0xb8]
mov cl, byte [ecx]
xor cl, al
mov al, cl
and al, 0xf
add al, al
mov dl, cl
add al, al
shr dl, 4
add al, al
and dl, 7
and cl, 0x80
or al, dl
or al, cl
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x84], ebx
mov byte [ebp], al
cmp ecx, 4
jne 0x4798f9
test al, al
jne 0x479943
lea ecx, [esp + 0x38]
call fcn.00413fb0
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 0
call fcn.0044fb10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0044fb10
mov al, 1
jmp 0x479d0f
cmp ecx, 3
jne 0x479943
mov bl, al
mov cl, al
shr bl, 3
and cl, 7
and bl, 0xf
shl cl, 4
and al, 0x80
or bl, cl
or bl, al
mov eax, dword [esp + 0x20]
call fcn.004785a0
add eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
add eax, dword [esp + 0xb8]
inc ecx
xor al, bl
mov byte [ecx - 1], al
mov dword [esp + 0x84], 0
mov dword [esp + 0x54], ecx
xor ebx, ebx
mov eax, 1
add dword [esp + 0x18], eax
add ebp, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0xb8]
mov ebx, dword [esp + 0xac]
dec eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x80], eax
cmp ebx, eax
jae 0x479c93
mov edi, dword [esp + 0x28]
mov eax, ebx
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
sub eax, ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x18]
mov al, byte [edx + ebx - 1]
xor al, byte [ebp - 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 + 0x50]
add ecx, edx
movsx edx, byte [edi + eax]
sub edx, ebx
push 0
add edx, esi
add edx, dword [esp + 0xbc]
push ecx
push 0
push edx
call fcn.004d8c30
mov ecx, dword [esp + 0x18]
xor al, byte [ecx + ebx]
inc edi
mov bl, al
and bl, 0xf
add bl, bl
add bl, bl
mov dl, al
shr dl, 4
add bl, bl
and dl, 7
or bl, dl
and al, 0x80
or bl, al
mov byte [ebp], bl
mov dword [esp + 0x28], edi
cmp edi, dword [esp + 0x5c]
jb 0x479a19
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xb0]
mov edx, 1
add dword [esp + 0x10], edx
add dword [esp + 0x64], edx
add ebp, edx
cmp eax, 2
jg 0x479b10
mov ecx, dword [esp + 0x58]
add ecx, edx
mov dword [esp + 0x58], ecx
cmp ecx, 0x4000
ja 0x479a57
cmp bl, 0xa
je 0x479a57
test bl, bl
jne 0x479c80
mov ebx, dword [esp + 0x10]
cmp eax, 2
jne 0x479c93
cmp byte [ebp - 2], 0xd
jne 0x479a70
mov word [ebp - 2], 0xa
xor eax, eax
mov byte [ebp], 0
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x8c]
call fcn.004143f0
mov esi, dword [esp + 0xa4]
lea edi, [esp + 0x88]
call fcn.00414130
mov eax, dword [esp + 0xa8]
mov ecx, edi
mov dword [eax], ebx
call fcn.00413fb0
lea ecx, [esp + 0x38]
call fcn.00413fb0
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 0
call fcn.0044fb10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0044fb10
cmp ebx, dword [esp + 0x80]
jae 0x479d0d
mov al, 1
jmp 0x479d0f
xor edx, edx
div dword [esp + 0x5c]
mov dword [esp + 0x28], edx
jmp 0x479956
cmp eax, 3
jne 0x479b55
test bl, bl
je 0x479cc5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0xbc]
push ecx
push edx
push eax
lea eax, [ebp - 1]
call fcn.00478870
add esp, 0x10
inc edi
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x28]
mov byte [ebp - 2], 0
jmp 0x479c80
cmp eax, 4
jne 0x479c80
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov esi, dword [esp + 0xc4]
cmp byte [esi + 0x10], al
jne 0x479bdf
cmp dword [esp + 0x1c], eax
je 0x479bdf
mov cl, byte [ebp - 2]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x6c]
mov byte [esp + 0x18], cl
call fcn.004143f0
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ecx*2]
call fcn.00409d00
mov edx, dword [esp + 0x6c]
mov si, ax
mov ax, word [edx]
call fcn.00409d00
inc dword [esp + 0x24]
cmp ax, si
je 0x479bc3
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xc4]
cmp eax, dword [esp + 0x1c]
jne 0x479bdf
mov ecx, dword [esp + 0x64]
mov byte [esi + 0x10], 1
mov dword [esi + 0x14], ecx
cmp dword [esi + 4], 0
jne 0x479c73
cmp dword [esi], 0
je 0x479c73
cmp bl, 0xa
jne 0x479c73
mov byte [ebp], 0
mov ebp, dword [esp + 0x3c]
push ebp
lea eax, [esp + 0x6c]
call fcn.004143f0
mov ebx, dword [esp + 0x6c]
mov eax, dword [esi]
mov ecx, ebx
call fcn.004ac420
add ebx, 2
cmp ebx, eax
jne 0x479c60
mov ebx, dword [esp + 0x74]
test ebx, ebx
jne 0x479c40
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], edx
call fcn.00414030
mov byte [ebp], 0xa
mov ebp, dword [esp + 0x7c]
jmp 0x479c77
cmp dword [esp + 0x78], 0
jne 0x479c60
lea eax, [esp + 0x68]
call fcn.00414e80
mov ecx, dword [esp + 0x10]
sub ecx, eax
mov dword [esp + 0x78], ecx
sub ecx, ebx
inc ecx
mov dword [esi + 4], ecx
lea ecx, [esp + 0x38]
call fcn.00414030
mov byte [ebp], 0xa
mov ebp, dword [esp + 0x7c]
jmp 0x479c77
test bl, bl
je 0x479cbc
lea ecx, [esp + 0x68]
call fcn.00413fb0
mov eax, dword [esp + 0x10]
mov ebx, eax
cmp eax, dword [esp + 0x80]
jb 0x479990
mov eax, dword [esp + 0xb0]
cmp eax, 3
je 0x4798c4
cmp eax, 4
jne 0x479a70
mov ecx, dword [esp + 0xc4]
inc ebx
mov dword [ecx + 8], ebx
jmp 0x4798c4
lea ecx, [esp + 0x68]
call fcn.00413fb0
lea ecx, [esp + 0x38]
call fcn.00413fb0
jmp 0x479ce8
mov ecx, dword [esp + 0x38]
push ecx
push ebx
push esi
call fcn.004d2f90
add esp, 0xc
push esi
call fcn.004ca991
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 0
call fcn.0044fb10
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call fcn.0044fb10
xor al, al
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x90
ret