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

Disassembly:
push 0xffffffffffffffff
push 0x4dbe90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov ecx, dword [esp + 0x68]
push ebx
xor ebx, ebx
mov byte [esp + 7], 0
cmp ecx, ebx
je 0x49833a
mov byte [ecx], bl
cmp dword [esp + 0x58], ebx
jne 0x498352
xor al, al
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov eax, dword [esp + 0x64]
push esi
mov esi, 1
push edi
lea edi, [esi + 1]
cmp eax, esi
je 0x49836c
cmp eax, edi
jne 0x4983d0
cmp ecx, ebx
je 0x4983d0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x70]
push eax
mov dword [esp + 0x5c], ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], vtable.CStringCharFromWChar.0
call fcn.004a4950
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4983ee
mov eax, dword [eax]
cmp eax, ebx
je 0x4983e4
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x4983ac
mov eax, 0x50ed83
xor ecx, ecx
cmp byte [eax], cl
je 0x4983bf
add eax, esi
add ecx, esi
cmp byte [eax], 0
jne 0x4983b2
cmp ecx, ebx
jne 0x4983f8
lea eax, [esp + 0x1c]
mov dword [esp + 0x58], 0xffffffff
call fcn.0044fba0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov dword [esp + 0x14], 0x50ed83
jmp 0x4983a3
mov dword [esp + 0x14], 0x50ed83
jmp 0x4983a7
push ebp
lea ebp, [ecx*8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
lea edi, [ebp*4]
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.004c9c38
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x498558
push edi
call fcn.004c9c38
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
je 0x498542
xor esi, esi
test ebp, ebp
je 0x4984c5
sub ebx, eax
mov eax, 0xcccccccd
mul esi
shr edx, 3
lea ecx, [edx + edx*4]
add ecx, ecx
mov edx, esi
sub edx, ecx
mov eax, dword [esp + edx*4 + 0x2c]
mov ecx, dword [esp + 0x18]
lea edx, [eax*8]
mov eax, esi
shr eax, 3
movsx eax, byte [eax + ecx]
mov ecx, esi
and ecx, 7
shr eax, cl
mov ecx, edx
and eax, 1
shl eax, cl
mov dword [ebx + edi], eax
mov eax, 1
shl eax, cl
cmp dword [esp + 0x70], 1
mov dword [edi], eax
jne 0x4984b5
not eax
mov dword [edi], eax
inc esi
add edi, 4
cmp esi, ebp
jb 0x498465
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
imul esi, dword [esp + 0x68]
cmp eax, 1
jne 0x498503
xor ecx, ecx
test esi, esi
jle 0x498538
lea ecx, [ecx]
mov eax, ecx
xor edx, edx
div ebp
mov eax, dword [esp + 0x64]
inc ecx
mov edi, dword [edi + edx*4]
and edi, dword [eax + ecx*4 - 4]
or edi, dword [ebx + edx*4]
mov dword [eax + ecx*4 - 4], edi
mov edi, dword [esp + 0x14]
cmp ecx, esi
jl 0x4984e0
jmp 0x498538
cmp eax, 2
jne 0x49853d
mov ecx, dword [esp + 0x78]
mov byte [ecx], 1
xor ecx, ecx
test esi, esi
jle 0x498538
xor edx, edx
mov eax, ecx
div ebp
mov eax, dword [esp + 0x64]
mov eax, dword [eax + ecx*4]
and eax, dword [edi + edx*4]
cmp eax, dword [ebx + edx*4]
jne 0x498531
inc ecx
cmp ecx, esi
jl 0x498515
jmp 0x498538
mov ecx, dword [esp + 0x78]
mov byte [ecx], 0
mov byte [esp + 0x13], 1
mov esi, 1
push ebx
call fcn.004ca991
add esp, 4
test edi, edi
je 0x498558
push edi
call fcn.004ca991
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], vtable.CKuStringT_char__class_CKuStringUtilA_.0
pop ebp
test ecx, ecx
je 0x498598
mov eax, dword [ecx + 0x10]
sub eax, esi
mov dword [ecx + 0x10], eax
jne 0x498598
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
test eax, eax
je 0x49858f
push eax
call fcn.004ca991
add esp, 4
push esi
call fcn.004cb3e6
add esp, 4
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret